public class AssemblyBuffer extends Object implements InputDisassembler, OutputAssembler
| Modifier and Type | Field and Description |
|---|---|
static int |
INITIAL_STRING_SIZE |
| Constructor and Description |
|---|
AssemblyBuffer() |
AssemblyBuffer(ByteBuffer in) |
AssemblyBuffer(ByteOrder order) |
| Modifier and Type | Method and Description |
|---|---|
void |
align(int alignment) |
void |
alignRead(int alignment) |
static InputDisassembler |
createInputDisassembler(ByteBuffer in) |
static OutputAssembler |
createOutputAssembler() |
static OutputAssembler |
createOutputAssembler(ByteBuffer out) |
static OutputAssembler |
createOutputAssembler(ByteOrder order) |
boolean |
eof() |
void |
even() |
byte[] |
getBlob() |
ByteBuffer |
getBuffer() |
ByteOrder |
getByteOrder() |
void |
pop() |
int |
pos() |
void |
pushPos() |
void |
pushSeek(long pos) |
void |
pushSkip(long diff) |
short |
read2Byte() |
int |
read4Byte() |
long |
read8Byte() |
byte[] |
readBlob(int length) |
byte |
readByte() |
long |
readLEB128() |
long |
readQuad() |
long |
readSLEB128() |
long |
readTruncatedLong(int truncateTo) |
char |
readUbyte() |
short |
readValue() |
String |
readZeroTerminatedString() |
void |
seek(long pos) |
void |
setByteOrder(ByteOrder byteOrder) |
void |
skip(int n) |
void |
skip(long diff) |
void |
write2Byte(short i) |
void |
write4Byte(int w) |
void |
write8Byte(long w) |
void |
writeBCD(double f) |
void |
writeBlob(byte[] blob) |
void |
writeByte(byte b) |
void |
writeDouble(double f) |
void |
writeFloat(float f) |
void |
writeLEB128(long v) |
void |
writeQuad(long w) |
void |
writeSLEB128(long v) |
void |
writeString(String s) |
void |
writeStringPadded(String s,
int nBytes) |
void |
writeTruncatedLong(long value,
int truncateTo) |
void |
writeValue(short i) |
void |
writeZero(int n) |
public static final int INITIAL_STRING_SIZE
public AssemblyBuffer(ByteBuffer in)
public AssemblyBuffer(ByteOrder order)
public AssemblyBuffer()
public static InputDisassembler createInputDisassembler(ByteBuffer in)
public static OutputAssembler createOutputAssembler(ByteBuffer out)
public static OutputAssembler createOutputAssembler(ByteOrder order)
public static OutputAssembler createOutputAssembler()
public boolean eof()
eof in interface InputDisassemblereof in interface OutputAssemblerpublic void seek(long pos)
seek in interface InputDisassemblerseek in interface OutputAssemblerpublic void skip(long diff)
skip in interface InputDisassemblerskip in interface OutputAssemblerpublic void pushSeek(long pos)
pushSeek in interface InputDisassemblerpushSeek in interface OutputAssemblerpublic void pushSkip(long diff)
pushSkip in interface InputDisassemblerpushSkip in interface OutputAssemblerpublic void pushPos()
pushPos in interface InputDisassemblerpushPos in interface OutputAssemblerpublic void pop()
pop in interface InputDisassemblerpop in interface OutputAssemblerpublic int pos()
pos in interface InputDisassemblerpos in interface OutputAssemblerpublic void align(int alignment)
align in interface OutputAssemblerpublic void even()
even in interface InputDisassemblereven in interface OutputAssemblerpublic void writeZero(int n)
writeZero in interface OutputAssemblerpublic void writeLEB128(long v)
writeLEB128 in interface OutputAssemblerpublic void writeSLEB128(long v)
writeSLEB128 in interface OutputAssemblerpublic void writeBCD(double f)
writeBCD in interface OutputAssemblerpublic void writeFloat(float f)
writeFloat in interface OutputAssemblerpublic void writeDouble(double f)
writeDouble in interface OutputAssemblerpublic void writeByte(byte b)
writeByte in interface OutputAssemblerpublic void write4Byte(int w)
write4Byte in interface OutputAssemblerpublic void writeBlob(byte[] blob)
writeBlob in interface OutputAssemblerpublic void write2Byte(short i)
write2Byte in interface OutputAssemblerpublic void writeValue(short i)
writeValue in interface OutputAssemblerpublic void write8Byte(long w)
write8Byte in interface OutputAssemblerpublic void writeQuad(long w)
writeQuad in interface OutputAssemblerpublic void writeString(String s)
writeString in interface OutputAssemblerpublic void writeStringPadded(String s, int nBytes)
writeStringPadded in interface OutputAssemblerpublic ByteBuffer getBuffer()
getBuffer in interface InputDisassemblergetBuffer in interface OutputAssemblerpublic byte[] getBlob()
getBlob in interface OutputAssemblerpublic void setByteOrder(ByteOrder byteOrder)
setByteOrder in interface InputDisassemblersetByteOrder in interface OutputAssemblerpublic void skip(int n)
skip in interface InputDisassemblerskip in interface OutputAssemblerpublic ByteOrder getByteOrder()
getByteOrder in interface InputDisassemblergetByteOrder in interface OutputAssemblerpublic void alignRead(int alignment)
alignRead in interface InputDisassemblerpublic int read4Byte()
read4Byte in interface InputDisassemblerpublic byte readByte()
readByte in interface InputDisassemblerpublic char readUbyte()
readUbyte in interface InputDisassemblerpublic short read2Byte()
read2Byte in interface InputDisassemblerpublic short readValue()
readValue in interface InputDisassemblerpublic long read8Byte()
read8Byte in interface InputDisassemblerpublic long readQuad()
readQuad in interface InputDisassemblerpublic void writeTruncatedLong(long value,
int truncateTo)
writeTruncatedLong in interface OutputAssemblerpublic long readTruncatedLong(int truncateTo)
readTruncatedLong in interface InputDisassemblerpublic String readZeroTerminatedString()
readZeroTerminatedString in interface InputDisassemblerpublic long readLEB128()
readLEB128 in interface InputDisassemblerpublic long readSLEB128()
readSLEB128 in interface InputDisassemblerpublic byte[] readBlob(int length)
readBlob in interface InputDisassembler