Struct capstone::capstone::Capstone [] [src]

pub struct Capstone { /* fields omitted */ }

An instance of the capstone disassembler

Methods

impl Capstone
[src]

Creates a new instance of the disassembler.

use capstone::Capstone;
use capstone::constants::*;
let cs = Capstone::new(CsArch::ARCH_X86, CsMode::MODE_64);
assert!(cs.is_ok());

Disassembles a &[u8] full of instructions.

Pass count = 0 to disassemble all instructions in the buffer.

Controls whether to capstone will generate extra details about disassembled instructions.

Pass true to enable detail or false to disable detail.

Converts a register id reg_id to a String containing the register name.

Converts an instruction id insn_id to a String containing the instruction name.

Converts a group id group_id to a String containing the group name.

Returns whether the instruction insn belongs to the group with id group_id.

Returns groups ids to which an instruction belongs.

Returns groups to which an instruction belongs.

Returns a tuple (major, minor) indicating the version of the capstone C library.

Returns whether the capstone library supports a given architecture.

Returns whether the capstone library was compiled in diet mode.

Trait Implementations

impl Drop for Capstone
[src]

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