public final class RelocatableBuffer extends Object
ByteBuffer
with additional support for marking relocation sites within the
buffer for later processing.Constructor and Description |
---|
RelocatableBuffer(long size,
ByteOrder byteOrder) |
Modifier and Type | Method and Description |
---|---|
void |
addDirectRelocationWithAddend(int key,
int relocationSize,
Long explicitAddend,
Object targetObject) |
void |
addDirectRelocationWithoutAddend(int key,
int relocationSize,
Object targetObject) |
void |
addPCRelativeRelocationWithAddend(int key,
int relocationSize,
Long explicitAddend,
Object targetObject) |
void |
addRelocation(int key,
com.oracle.objectfile.ObjectFile.RelocationKind relocationKind,
int relocationSize,
Long explicitAddend,
Object targetObject) |
byte[] |
getBackingArray() |
ByteBuffer |
getByteBuffer() |
Set<Map.Entry<Integer,com.oracle.svm.hosted.image.RelocatableBuffer.Info>> |
getSortedRelocations() |
boolean |
hasRelocations() |
public RelocatableBuffer(long size, ByteOrder byteOrder)
public void addDirectRelocationWithoutAddend(int key, int relocationSize, Object targetObject)
public void addDirectRelocationWithAddend(int key, int relocationSize, Long explicitAddend, Object targetObject)
public void addPCRelativeRelocationWithAddend(int key, int relocationSize, Long explicitAddend, Object targetObject)
public void addRelocation(int key, com.oracle.objectfile.ObjectFile.RelocationKind relocationKind, int relocationSize, Long explicitAddend, Object targetObject)
public boolean hasRelocations()
public Set<Map.Entry<Integer,com.oracle.svm.hosted.image.RelocatableBuffer.Info>> getSortedRelocations()
public byte[] getBackingArray()
public ByteBuffer getByteBuffer()