public final class RelocatableBuffer extends Object
Modifier and Type | Class and Description |
---|---|
class |
RelocatableBuffer.Info |
Modifier and Type | Field and Description |
---|---|
protected ByteBuffer |
buffer
The ByteBuffer itself.
|
protected String |
name
For debugging.
|
protected long |
size
The size of the ByteBuffer.
|
Modifier and Type | Method and Description |
---|---|
RelocatableBuffer.Info |
addDirectRelocationWithAddend(int key,
int relocationSize,
Long explicitAddend,
Object targetObject) |
RelocatableBuffer.Info |
addDirectRelocationWithoutAddend(int key,
int relocationSize,
Object targetObject) |
RelocatableBuffer.Info |
addPCRelativeRelocationWithAddend(int key,
int relocationSize,
Long explicitAddend,
Object targetObject) |
RelocatableBuffer.Info |
addRelocation(int key,
com.oracle.objectfile.ObjectFile.RelocationKind relocationKind,
int relocationSize,
Long explicitAddend,
Object targetObject) |
Set<Map.Entry<Integer,RelocatableBuffer.Info>> |
entrySet() |
static RelocatableBuffer |
factory(String name,
long size,
ByteOrder byteOrder) |
protected ByteBuffer |
getBuffer() |
byte |
getByte(int index) |
protected byte[] |
getBytes() |
RelocatableBuffer.Info |
getInfo(int key) |
protected Map<Integer,RelocatableBuffer.Info> |
getMap()
Raw map access.
|
String |
getName() |
int |
getPosition() |
int |
mapSize() |
RelocatableBuffer |
putByte(byte value) |
RelocatableBuffer |
putByte(int index,
byte value) |
RelocatableBuffer |
putBytes(byte[] source,
int offset,
int length) |
RelocatableBuffer |
putInt(int index,
int value) |
RelocatableBuffer |
setPosition(int newPosition) |
protected static String |
targetObjectClassification(Object targetObject) |
protected final String name
protected final long size
protected final ByteBuffer buffer
public static RelocatableBuffer factory(String name, long size, ByteOrder byteOrder)
public RelocatableBuffer.Info getInfo(int key)
public RelocatableBuffer.Info addDirectRelocationWithAddend(int key, int relocationSize, Long explicitAddend, Object targetObject)
public RelocatableBuffer.Info addDirectRelocationWithoutAddend(int key, int relocationSize, Object targetObject)
public RelocatableBuffer.Info addPCRelativeRelocationWithAddend(int key, int relocationSize, Long explicitAddend, Object targetObject)
public RelocatableBuffer.Info addRelocation(int key, com.oracle.objectfile.ObjectFile.RelocationKind relocationKind, int relocationSize, Long explicitAddend, Object targetObject)
public int mapSize()
public Set<Map.Entry<Integer,RelocatableBuffer.Info>> entrySet()
protected Map<Integer,RelocatableBuffer.Info> getMap()
public byte getByte(int index)
public RelocatableBuffer putByte(byte value)
public RelocatableBuffer putByte(int index, byte value)
public RelocatableBuffer putBytes(byte[] source, int offset, int length)
public RelocatableBuffer putInt(int index, int value)
public int getPosition()
public RelocatableBuffer setPosition(int newPosition)
protected byte[] getBytes()
protected ByteBuffer getBuffer()
public String getName()