pub struct X86;
Expand description
Length disassembler for the x86
instruction set architecture.
Implementations§
Source§impl X86
impl X86
Sourcepub fn ld(self, bytes: &[u8]) -> u32
pub fn ld(self, bytes: &[u8]) -> u32
Returns the length of the first opcode in the given byte slice.
When length disassembling fails, eg. the byte slice does not contain a complete and valid instruction, the return value is 0
.
Sourcepub fn peek(self, bytes: &[u8]) -> Option<&OpCode>
pub fn peek(self, bytes: &[u8]) -> Option<&OpCode>
Returns the first opcode in the byte slice if successful.
Sourcepub fn peek_mut(self, bytes: &mut [u8]) -> Option<&mut OpCode>
pub fn peek_mut(self, bytes: &mut [u8]) -> Option<&mut OpCode>
Returns the first opcode mutably in the byte slice if successful.
Trait Implementations§
Source§impl Isa for X86
impl Isa for X86
Source§fn ld(bytes: &[u8]) -> u32
fn ld(bytes: &[u8]) -> u32
Returns the length of the first opcode in the given byte slice. Read more
Source§fn peek(bytes: &[u8]) -> Option<&OpCode>
fn peek(bytes: &[u8]) -> Option<&OpCode>
Returns the first opcode in the byte slice if successful.
Source§fn peek_mut(bytes: &mut [u8]) -> Option<&mut OpCode>
fn peek_mut(bytes: &mut [u8]) -> Option<&mut OpCode>
Returns the first opcode mutably in the byte slice if successful.
Auto Trait Implementations§
impl Freeze for X86
impl RefUnwindSafe for X86
impl Send for X86
impl Sync for X86
impl Unpin for X86
impl UnwindSafe for X86
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