use of com.android.dx.io.instructions.ShortArrayCodeOutput in project buck by facebook.
the class InstructionTransformer method transform.
public short[] transform(IndexMap indexMap, short[] encodedInstructions) throws DexException {
DecodedInstruction[] decodedInstructions = DecodedInstruction.decodeAll(encodedInstructions);
int size = decodedInstructions.length;
this.indexMap = indexMap;
mappedInstructions = new DecodedInstruction[size];
mappedAt = 0;
reader.visitAll(decodedInstructions);
ShortArrayCodeOutput out = new ShortArrayCodeOutput(size);
for (DecodedInstruction instruction : mappedInstructions) {
if (instruction != null) {
instruction.encode(out);
}
}
this.indexMap = null;
return out.getArray();
}
use of com.android.dx.io.instructions.ShortArrayCodeOutput in project J2ME-Loader by nikita36078.
the class InstructionTransformer method transform.
public short[] transform(IndexMap indexMap, short[] encodedInstructions) throws DexException {
DecodedInstruction[] decodedInstructions = DecodedInstruction.decodeAll(encodedInstructions);
int size = decodedInstructions.length;
this.indexMap = indexMap;
mappedInstructions = new DecodedInstruction[size];
mappedAt = 0;
reader.visitAll(decodedInstructions);
ShortArrayCodeOutput out = new ShortArrayCodeOutput(size);
for (DecodedInstruction instruction : mappedInstructions) {
if (instruction != null) {
instruction.encode(out);
}
}
this.indexMap = null;
return out.getArray();
}
Aggregations