dex++ 0.3.1
C++ and C API reference
Loading...
Searching...
No Matches
dex::SwitchInstruction Struct Reference

packed-switch, sparse-switch (0x2b–0x2c). More...

#include <analysis/instruction.hpp>

Public Attributes

InstructionBase base
 
int32_t payload_offset
 Signed, relative to instruction start.
 
uint8_t reg
 
bool is_packed
 true for packed-switch (0x2b), false for sparse-switch (0x2c)
 
std::vector< SwitchCase > cases
 Decoded case table.
 

Detailed Description

packed-switch, sparse-switch (0x2b–0x2c).

Member Data Documentation

◆ base

InstructionBase dex::SwitchInstruction::base

◆ payload_offset

int32_t dex::SwitchInstruction::payload_offset

Signed, relative to instruction start.

◆ reg

uint8_t dex::SwitchInstruction::reg

◆ is_packed

bool dex::SwitchInstruction::is_packed

true for packed-switch (0x2b), false for sparse-switch (0x2c)

◆ cases

std::vector<SwitchCase> dex::SwitchInstruction::cases

Decoded case table.

Empty if the payload was malformed or out of bounds.


The documentation for this struct was generated from the following file: