Methods Summary |
---|
public void | alignTo(int alignment)Adds extra bytes if necessary (with value {@code 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 {@code byte[]} to this instance.
|
public void | write(byte[] bytes)Writes a {@code byte[]} to this instance. This is just
a convenient shorthand for {@code write(bytes, 0, bytes.length)}.
|
public void | write(ByteArray bytes)Writes a {@link ByteArray} to this instance.
|
public void | writeByte(int value)Writes a {@code byte} to this instance.
|
public void | writeInt(int value)Writes an {@code int} to this instance.
|
public void | writeLong(long value)Writes a {@code long} to this instance.
|
public void | writeShort(int value)Writes a {@code short} to this instance.
|
public int | writeSleb128(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 | writeUleb128(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 {@code 0} bytes.
|