pub struct DecodedInstruction {
pub inner: Instruction,
pub length: usize,
pub is_relative: bool,
pub is_control_flow: bool,
pub branch_target: Option<u64>,
pub is_rip_relative: bool,
pub rip_disp_offset: Option<usize>,
pub rip_disp_size: Option<usize>,
pub rip_target: Option<u64>,
}Expand description
decoded instruction with full metadata
Fields§
§inner: Instructionthe raw iced-x86 instruction
length: usizeinstruction length in bytes
is_relative: boolwhether instruction uses relative addressing that needs relocation
is_control_flow: boolwhether this is a control flow instruction (branch, call, ret)
branch_target: Option<u64>for relative instructions, the computed absolute target address
is_rip_relative: boolwhether this is a RIP-relative memory access
rip_disp_offset: Option<usize>for RIP-relative access, the displacement offset within the instruction
rip_disp_size: Option<usize>for RIP-relative access, the displacement size
rip_target: Option<u64>computed absolute address for RIP-relative access
Implementations§
Trait Implementations§
Source§impl Clone for DecodedInstruction
impl Clone for DecodedInstruction
Source§fn clone(&self) -> DecodedInstruction
fn clone(&self) -> DecodedInstruction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecodedInstruction
impl RefUnwindSafe for DecodedInstruction
impl Send for DecodedInstruction
impl Sync for DecodedInstruction
impl Unpin for DecodedInstruction
impl UnwindSafe for DecodedInstruction
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