Methods Summary |
---|
public void | alignTo(int alignment)Adds extra bytes if necessary (with value 0 ) to
force alignment of the output cursor as given.
|
public void | assertCursor(int expectedCursor)Asserts that the cursor is the given value.
|
public int | getCursor()Gets the current cursor position. This is the same as the number of
bytes written to this instance.
|
public void | write(byte[] bytes, int offset, int length)Writes a portion of a byte[] to this instance.
|
public void | write(byte[] bytes)Writes a byte[] to this instance. This is just
a convenient shorthand for write(bytes, 0, bytes.length) .
|
public void | write(ByteArray bytes)Writes a {@link ByteArray} to this instance.
|
public void | writeByte(int value)Writes a byte to this instance.
|
public void | writeInt(int value)Writes an int to this instance.
|
public void | writeLong(long value)Writes a long to this instance.
|
public void | writeShort(int value)Writes a short to this instance.
|
public int | writeSignedLeb128(int value)Writes a DWARFv3-style unsigned LEB128 integer. For details,
see the "Dalvik Executable Format" document or DWARF v3 section
7.6.
|
public int | writeUnsignedLeb128(int value)Writes a DWARFv3-style unsigned LEB128 integer. For details,
see the "Dalvik Executable Format" document or DWARF v3 section
7.6.
|
public void | writeZeroes(int count)Writes the given number of 0 bytes.
|