MCPcopy Create free account
hub / github.com/Youlor/unpacker / writeTo

Method writeTo

dexfixer/src/com/android/dx/dex/code/form/Form22b.java:102–111  ·  view source on GitHub ↗

{@inheritDoc}

(AnnotatedOutput out, DalvInsn insn)

Source from the content-addressed store, hash-verified

100
101 /** {@inheritDoc} */
102 @Override
103 public void writeTo(AnnotatedOutput out, DalvInsn insn) {
104 RegisterSpecList regs = insn.getRegisters();
105 int value =
106 ((CstLiteralBits) ((CstInsn) insn).getConstant()).getIntBits();
107
108 write(out,
109 opcodeUnit(insn, regs.get(0).getReg()),
110 codeUnit(regs.get(1).getReg(), value & 0xff));
111 }
112}

Callers

nothing calls this directly

Calls 8

getMethod · 0.95
getRegistersMethod · 0.80
opcodeUnitMethod · 0.80
getRegMethod · 0.80
writeMethod · 0.65
getIntBitsMethod · 0.45
getConstantMethod · 0.45
codeUnitMethod · 0.45

Tested by

no test coverage detected