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

Method SizeInCodeUnits

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

Returns the size (in 2 byte code units) of this instruction.

Source from the content-addressed store, hash-verified

218
219 // Returns the size (in 2 byte code units) of this instruction.
220 size_t SizeInCodeUnits() const {
221 int8_t result = kInstructionDescriptors[Opcode()].size_in_code_units;
222 if (UNLIKELY(result < 0)) {
223 return SizeInCodeUnitsComplexOpcode();
224 } else {
225 return static_cast<size_t>(result);
226 }
227 }
228
229 // Code units required to calculate the size of the instruction.
230 size_t CodeUnitsRequiredForSizeComputation() const {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected