MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / SetOpcode

Method SetOpcode

Bcore/src/main/cpp/dex/dex_instruction.h:482–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480 }
481
482 void SetOpcode(Code opcode) {
483 DCHECK_LT(static_cast<uint16_t>(opcode), 256u);
484 uint16_t* insns = reinterpret_cast<uint16_t*>(this);
485 insns[0] = (insns[0] & 0xff00) | static_cast<uint16_t>(opcode);
486 }
487
488 void SetVRegA_10x(uint8_t val) {
489 DCHECK(FormatOf(Opcode()) == k10x);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected