Trait iced_x86::SymbolResolver
source · [−]pub trait SymbolResolver {
fn symbol(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
address: u64,
address_size: u32
) -> Option<SymbolResult<'_>>;
}Expand description
Used by a Formatter to resolve symbols
Required Methods
sourcefn symbol(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
address: u64,
address_size: u32
) -> Option<SymbolResult<'_>>
fn symbol(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
address: u64,
address_size: u32
) -> Option<SymbolResult<'_>>
Tries to resolve a symbol
Arguments
instruction: Instructionoperand: Operand number, 0-based. This is a formatter operand and isn’t necessarily the same as an instruction operand.instruction_operand: Instruction operand number, 0-based, orNoneif it’s an operand created by the formatter.address: Addressaddress_size: Size ofaddressin bytes (eg. 1, 2, 4 or 8)
