capstone.api

Idiomatic lifting of Capstone's C API to D

Members

Aliases

AccessFlags
alias AccessFlags = BitFlags!AccessType

Alias for combination of several flags

Callback
alias Callback = size_t delegate(in ubyte[] code, size_t offset) nothrow @nogc

User-defined callback function type for SKIPDATA mode of operation

ModeFlags
alias ModeFlags = BitFlags!(Mode, Yes.unsafe)

Alias for combination of several modes

Enums

AccessType
enum AccessType

Common instruction operand access types - to be consistent across all architectures.

Arch
enum Arch

Architecture type

Mode
enum Mode

Mode type

SupportQuery
enum SupportQuery

The support options that Capstone can be compiled with

Syntax
enum Syntax

Disassembly syntax variants

Functions

diet
bool diet()

Indicates whether the installed library was compiled in diet mode

supports
bool supports(in SupportQuery query)

Indicates whether an architecture or particular option is supported by the installed Capstone library

versionOfBindings
auto versionOfBindings()

Determines the Version supported by these bindings

versionOfLibrary
auto versionOfLibrary()

Determines the Version supported by the installed library

Static functions

create
Capstone create(Arch arch, ModeFlags modeFlags)

Creates a Capstone instance for disassembling code of a specific architecture

Structs

Version
struct Version

Version consisting of major and minor numbers

Meta