Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.io.instructions

public final Class ShortArrayCodeOutput

extends BaseCodeCursor
implements CodeOutput
Class Inheritance
All Implemented Interfaces
org.droidparts.dexmaker.dx.io.instructions.CodeOutput, org.droidparts.dexmaker.dx.io.instructions.CodeCursor

Implementation of CodeOutput that writes to a short[].

Field Summary

Modifier and TypeField and Description
private final short[]
array

array to write to

Constructor Summary

AccessConstructor and Description
public
ShortArrayCodeOutput(int
the maximum number of code units that will be written
maxSize
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public short[]
getArray()

Gets the array.

public void
write(short codeUnit)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes a code unit.
public void
write(short u0, short u1)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes two code units.
public void
write(short u0, short u1, short u2)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes three code units.
public void
write(short u0, short u1, short u2, short u3)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes four code units.
public void
write(short u0, short u1, short u2, short u3, short u4)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes five code units.
public void
write(byte[] data)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes the contents of the given array.
public void
write(short[] data)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes the contents of the given array.
public void
write(int[] data)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes the contents of the given array.
public void
write(long[] data)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes the contents of the given array.
public void
writeInt(int value)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.writeInt.

Writes an int, little-endian.
public void
writeLong(long value)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.writeLong.

Writes a long, little-endian.
Inherited from org.droidparts.dexmaker.dx.io.instructions.BaseCodeCursor:
advancebaseAddressForCursorcursorsetBaseAddress

Field Detail

arrayback to summary
private final short[] array

array to write to

Constructor Detail

ShortArrayCodeOutputback to summary
public ShortArrayCodeOutput(int maxSize)

Constructs an instance.

Parameters
maxSize:int

the maximum number of code units that will be written

Method Detail

getArrayback to summary
public short[] getArray()

Gets the array. The returned array contains exactly the data written (e.g. no leftover space at the end).

writeback to summary
public void write(short codeUnit)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes a code unit.

writeback to summary
public void write(short u0, short u1)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes two code units.

writeback to summary
public void write(short u0, short u1, short u2)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes three code units.

writeback to summary
public void write(short u0, short u1, short u2, short u3)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes four code units.

writeback to summary
public void write(short u0, short u1, short u2, short u3, short u4)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes five code units.

writeback to summary
public void write(byte[] data)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes the contents of the given array.

writeback to summary
public void write(short[] data)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes the contents of the given array.

writeback to summary
public void write(int[] data)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes the contents of the given array.

writeback to summary
public void write(long[] data)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.write.

Writes the contents of the given array.

writeIntback to summary
public void writeInt(int value)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.writeInt.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.writeInt.

Writes an int, little-endian.

writeLongback to summary
public void writeLong(long value)

Implements org.droidparts.dexmaker.dx.io.instructions.CodeOutput.writeLong.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeOutput.writeLong.

Writes a long, little-endian.