pub struct InstructionDecoder { /* private fields */ }Expand description
instruction decoder using iced-x86
Implementations§
Source§impl InstructionDecoder
impl InstructionDecoder
Sourcepub fn decode_at(
&self,
address: usize,
bytes: &[u8],
) -> Option<DecodedInstruction>
pub fn decode_at( &self, address: usize, bytes: &[u8], ) -> Option<DecodedInstruction>
decode a single instruction at the given address
Sourcepub fn decode_all(
&self,
address: usize,
bytes: &[u8],
) -> Vec<DecodedInstruction>
pub fn decode_all( &self, address: usize, bytes: &[u8], ) -> Vec<DecodedInstruction>
decode all instructions in the byte slice
Sourcepub fn decode_until_size(
&self,
address: usize,
bytes: &[u8],
min_bytes: usize,
) -> Vec<DecodedInstruction>
pub fn decode_until_size( &self, address: usize, bytes: &[u8], min_bytes: usize, ) -> Vec<DecodedInstruction>
decode instructions until we have at least min_bytes
Auto Trait Implementations§
impl Freeze for InstructionDecoder
impl RefUnwindSafe for InstructionDecoder
impl Send for InstructionDecoder
impl Sync for InstructionDecoder
impl Unpin for InstructionDecoder
impl UnwindSafe for InstructionDecoder
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