Struct capstone3::Capstone [] [src]

pub struct Capstone { /* fields omitted */ }

An instance of the capstone disassembler

Methods

impl Capstone
[src]

Create a new instance of the decompiler. Defaults to 64-bit little-endian mode.

use capstone::{self, Capstone};
let cs = Capstone::new(capstone::Arch::X86);
assert!(cs.is_ok());

Set the disassembly engine to use detail mode

Sets the engine's disassembly mode. Be careful, various combinations of modes aren't supported See the capstone-sys documentation for more information.

Set the X86 assembly to AT&T style (has no effect on other platforms)

Set the X86 assembly to Intel style (default)

Disassemble a &[u8] buffer full of instructions

Disassembles all instructions in code. If you want to disassemble less, then pass a smaller slice :]

Convert a reg_id to a String naming the register

Convert an instruction_id to a String naming the instruction

Trait Implementations

impl Drop for Capstone
[src]

A method called when the value goes out of scope. Read more