Interface CodeOutput
- All Superinterfaces:
CodeCursor
- All Known Implementing Classes:
ShortArrayCodeOutput
Output stream of code units, for writing out Dalvik bytecode.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(byte[] data) Writes the contents of the given array.voidwrite(int[] data) Writes the contents of the given array.voidwrite(long[] data) Writes the contents of the given array.voidwrite(short codeUnit) Writes a code unit.voidwrite(short[] data) Writes the contents of the given array.voidwrite(short u0, short u1) Writes two code units.voidwrite(short u0, short u1, short u2) Writes three code units.voidwrite(short u0, short u1, short u2, short u3) Writes four code units.voidwrite(short u0, short u1, short u2, short u3, short u4) Writes five code units.voidwriteInt(int value) Writes anint, little-endian.voidwriteLong(long value) Writes along, little-endian.Methods inherited from interface CodeCursor
baseAddressForCursor, cursor, setBaseAddress
-
Method Details
-
write
void write(short codeUnit) Writes a code unit. -
write
void write(short u0, short u1) Writes two code units. -
write
void write(short u0, short u1, short u2) Writes three code units. -
write
void write(short u0, short u1, short u2, short u3) Writes four code units. -
write
void write(short u0, short u1, short u2, short u3, short u4) Writes five code units. -
writeInt
void writeInt(int value) Writes anint, little-endian. -
writeLong
void writeLong(long value) Writes along, little-endian. -
write
void write(byte[] data) Writes the contents of the given array. -
write
void write(short[] data) Writes the contents of the given array. -
write
void write(int[] data) Writes the contents of the given array. -
write
void write(long[] data) Writes the contents of the given array.
-