Struct lde::X86
[−]
[src]
pub struct X86;
Length disassembler for the x86
instruction set architecture.
Methods
impl X86
[src]
pub fn ld(self, bytes: &[u8]) -> u32
[src]
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
.
pub fn peek(self, bytes: &[u8]) -> Option<&OpCode>
[src]
Returns the first opcode in the byte slice if successful.
pub fn peek_mut(self, bytes: &mut [u8]) -> Option<&mut OpCode>
[src]
Returns the first opcode mutably in the byte slice if successful.
ⓘImportant traits for Iter<'a, X>pub fn iter<'a>(self, bytes: &'a [u8], va: u32) -> Iter<'a, X86>
[src]
Returns an iterator over the opcodes contained in the byte slice.
Given a virtual address to keep track of the instruction pointer.
ⓘImportant traits for IterMut<'a, X>pub fn iter_mut<'a>(self, bytes: &'a mut [u8], va: u32) -> IterMut<'a, X86>
[src]
Returns an iterator over the opcodes contained in the byte slice.
Given a virtual address to keep track of the instruction pointer.
Trait Implementations
impl Isa for X86
[src]
type Va = u32
Virtual address type.
fn ld(bytes: &[u8]) -> u32
[src]
Returns the length of the first opcode in the given byte slice. Read more
fn peek(bytes: &[u8]) -> Option<&OpCode>
[src]
Returns the first opcode in the byte slice if successful.
fn peek_mut(bytes: &mut [u8]) -> Option<&mut OpCode>
[src]
Returns the first opcode mutably in the byte slice if successful.
ⓘImportant traits for Iter<'a, X>fn iter<'a>(bytes: &'a [u8], va: Self::Va) -> Iter<'a, Self>
[src]
Returns an iterator over the opcodes contained in the byte slice. Read more
ⓘImportant traits for IterMut<'a, X>fn iter_mut<'a>(bytes: &'a mut [u8], va: Self::Va) -> IterMut<'a, Self>
[src]
Returns an iterator over the opcodes contained in the byte slice. Read more