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 |
addRelocationWithAddend(int key,
com.oracle.objectfile.ObjectFile.RelocationKind relocationKind,
Long explicitAddend,
Object targetObject) |
void |
addRelocationWithoutAddend(int key,
com.oracle.objectfile.ObjectFile.RelocationKind relocationKind,
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 addRelocationWithoutAddend(int key, com.oracle.objectfile.ObjectFile.RelocationKind relocationKind, Object targetObject)
public void addRelocationWithAddend(int key, com.oracle.objectfile.ObjectFile.RelocationKind relocationKind, 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()