java.util.DataOutput, but no IOExceptions
are declared, and multibyte output is defined to be little-endian.
| Modifier and Type | Method and Description |
|---|---|
| public void | alignTo(int
> 0; the alignment; must be a power of twoAdds extra bytes if necessary (with value |
| public void | assertCursor(int
the expected cursor value expectedCursor)Asserts that the cursor is the given value. |
| public int | |
| public void | |
| public void | write(byte[]
non-null; the array to write>= 0; offset into bytes for the first
byte to write>= 0; number of bytes to writeWrites a portion of a |
| public void | |
| public void | writeByte(int
the value to write; all but the low 8 bits are ignored value)Redeclares org. byte to this instance.
|
| public void | |
| public void | |
| public void | writeShort(int
the value to write; all but the low 16 bits are ignored value)Writes a |
| public int | Returns: 1..5; the number of bytes actually writtenvalue to write value)Writes a DWARFv3-style unsigned LEB128 integer. |
| public int | Returns: 1..5; the number of bytes actually writtenvalue to write, treated as an unsigned value value)Writes a DWARFv3-style unsigned LEB128 integer. |
| public void |
| alignTo | back to summary |
|---|---|
| public void alignTo(int alignment) Adds extra bytes if necessary (with value
| |
| assertCursor | back to summary |
|---|---|
| public void assertCursor(int expectedCursor) Asserts that the cursor is the given value.
| |
| getCursor | back to summary |
|---|---|
| public int getCursor() Gets the current cursor position. This is the same as the number of bytes written to this instance.
| |
| write | back to summary |
|---|---|
| public void write(ByteArray bytes) Writes a
| |
| write | back to summary |
|---|---|
| public void write(byte[] bytes, int offset, int length) Writes a portion of a
| |
| write | back to summary |
|---|---|
| public void write(byte[] bytes) Writes a
| |
| writeByte | back to summary |
|---|---|
| public void writeByte(int value) Redeclares org. Writes a
| |
| writeInt | back to summary |
|---|---|
| public void writeInt(int value) Writes an
| |
| writeLong | back to summary |
|---|---|
| public void writeLong(long value) Writes a
| |
| writeShort | back to summary |
|---|---|
| public void writeShort(int value) Writes a
| |
| writeSleb128 | back to summary |
|---|---|
| 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.
| |
| writeUleb128 | back to summary |
|---|---|
| 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.
| |
| writeZeroes | back to summary |
|---|---|
| public void writeZeroes(int count) Writes the given number of
| |