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.
|
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 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()