Struct keystone::Keystone
[−]
[src]
pub struct Keystone { /* fields omitted */ }
Methods
impl Keystone
[src]
fn new(arch: Arch, mode: Mode) -> Result<Keystone, Error>
Create new instance of Keystone engine.
fn error(&self) -> Result<(), Error>
Report the last error number when some API function fail.
fn option(&self, type_: OptionType, value: OptionValue) -> Result<(), Error>
Set option for Keystone engine at runtime
fn asm(&self, str: String, address: u64) -> Result<AsmResult, Error>
Assemble a string given its the buffer, size, start address and number of instructions to be decoded.
This API dynamically allocate memory to contain assembled instruction. Resulted array of bytes containing the machine code is put into @*encoding