@Override
    public void encode(DecodedInstruction insn, CodeOutput out) {
      int relativeTarget = insn.getTarget(out.cursor());
      out.write(insn.getOpcodeUnit(), unit0(relativeTarget), unit1(relativeTarget));
    }
Representation of an instruction format, which knows how to decode into and encode from instances
of {@link DecodedInstruction}.
android/android_framework/dex-maker/src/main/java/com/android/dx/io/instructions/InstructionCodec.java