Trait lde::InsnSet [] [src]

pub trait InsnSet: Sized {
    type Va: VirtualAddr;
    fn ld(bytes: &[u8]) -> u32;

    fn lde(bytes: &[u8], va: Self::Va) -> LDE<Self> { ... }
    fn code(bytes: &[u8], va: Self::Va) -> (&OpCode, Self::Va) { ... }
}

Declares the entry point for an instruction set's length disassembler.

Associated Types

Virtual address type.

Required Methods

Length disassembles the given bytes.

Returns 0 on failure.

Provided Methods

Creates an iterator over the opcodes contained within the bytes.

Given a virtual address to keep track of the instruction pointer.

Helps with coercing arrays.

Implementors