#[repr(C)]pub struct InstructionData {
pub status: i32,
pub err_op: u8,
pub err_optype: u8,
pub address: u64,
pub target: u64,
pub itype: u16,
pub len: u8,
pub isa: u8,
pub nops: u8,
pub flow: u8,
pub mnemonic: String,
pub ops: Vec<OperandData>,
}Expand description
A decoded instruction, returned by value from decode_insn; status carries the raw result code and ops is right-sized to the populated operands.
Fields§
§status: i32Result code: 0 ok, -1 no instruction, -2 unsupported processor, -3 unmodeled operand, -4 unmodeled register.
err_op: u8On the -3/-4 status, the offending operand index.
err_optype: u8On -3 the offending raw operand type; on -4 the register number.
address: u64Instruction address.
target: u64Direct branch/call target, or BADADDR.
itype: u16Processor-local canonical instruction id.
len: u8Encoded length in bytes.
isa: u80 = x86, 1 = x64.
nops: u8Number of populated operands (matches ops.len()).
flow: u8IDAKIT_FLOW_* bit flags.
mnemonic: StringCanonical mnemonic.
ops: Vec<OperandData>Decoded operands; only meaningful when status == 0.
Trait Implementations§
Source§impl ExternType for InstructionData
impl ExternType for InstructionData
Auto Trait Implementations§
impl Freeze for InstructionData
impl RefUnwindSafe for InstructionData
impl Send for InstructionData
impl Sync for InstructionData
impl Unpin for InstructionData
impl UnsafeUnpin for InstructionData
impl UnwindSafe for InstructionData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more