pub struct LifterInstructionData { /* private fields */ }Expand description
Per-function store of basic block instruction bytes, populated during basic block analysis and
read during lifting. Obtained from BasicBlockAnalysisContext::lifter_instruction_data or
crate::architecture::FunctionLifterContext::lifter_instruction_data.
Implementations§
Source§impl LifterInstructionData
impl LifterInstructionData
Sourcepub fn append(&self, block: &BasicBlock<NativeBlock>, data: &[u8])
pub fn append(&self, block: &BasicBlock<NativeBlock>, data: &[u8])
Append decoded bytes for a block. Call during basic block analysis only.
Sourcepub fn get(&self, block: &BasicBlock<NativeBlock>, addr: u64) -> &[u8] ⓘ
pub fn get(&self, block: &BasicBlock<NativeBlock>, addr: u64) -> &[u8] ⓘ
The bytes from addr to the end of its block, or an empty slice when the block has no stored
data. Read-only, call during lifting.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LifterInstructionData
impl RefUnwindSafe for LifterInstructionData
impl !Send for LifterInstructionData
impl !Sync for LifterInstructionData
impl Unpin for LifterInstructionData
impl UnwindSafe for LifterInstructionData
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