pub struct ScratchInsn {
pub addr: AddressValue,
pub text: String,
pub bytes: Vec<u8>,
pub target: Option<AddressValue>,
pub target_mapped: bool,
pub target_misaligned: bool,
pub target_self_misaligned: bool,
}Expand description
One instruction from a scratch decode (see Region::scratch_decode).
Fields§
§addr: AddressValue§text: String§bytes: Vec<u8>§target: Option<AddressValue>The branch/call target, if the instruction has one.
target_mapped: boolWhether target points at a mapped byte. A target beyond the loaded
image is strong evidence the bytes are not really code.
target_misaligned: boolWhether target lands inside an existing instruction rather than at its
start. Also strong evidence the bytes are not really code.
target_self_misaligned: boolWhether target lands inside another instruction of this same decode (a
self-misalignment suggests this is not code).
Trait Implementations§
Source§impl Clone for ScratchInsn
impl Clone for ScratchInsn
Auto Trait Implementations§
impl Forget for ScratchInsn
impl Freeze for ScratchInsn
impl Move for ScratchInsn
impl RefUnwindSafe for ScratchInsn
impl Send for ScratchInsn
impl Sync for ScratchInsn
impl Unpin for ScratchInsn
impl UnsafeUnpin for ScratchInsn
impl UnwindSafe for ScratchInsn
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