pub trait Instruction {
    // Provided methods
    fn address(&self) -> u64 { ... }
    fn size(&self) -> u64 { ... }
    fn raw(&self) -> &[u8]  { ... }
    fn mnemonic(&self) -> String { ... }
    fn to_string(&self) -> String { ... }
}
Expand description

This trait is shared by all Instructions supported by LIEF

Provided Methods§

fn address(&self) -> u64

Address of the instruction

fn size(&self) -> u64

Size of the instruction in bytes

fn raw(&self) -> &[u8]

Raw bytes of the current instruction

fn mnemonic(&self) -> String

Instruction mnemonic (e.g. br)

fn to_string(&self) -> String

Representation of the current instruction in a pretty assembly way

Implementors§