Module ffi

Module ffi 

Source
Expand description

Unsafe Rust bindings for the Keystone Engine assembler library.

Structs§

KsEngine
Opaque type for the keystone engine.
Mode
Mode type.
OptionValue
Runtime option value (associated with OptionType above)

Enums§

Arch
Architecture type.
Error
All type of errors encountered by Keystone API.
OptionType
Runtime option for the Keystone engine.

Constants§

API_MAJOR
Keystone major API version.
API_MINOR
Keystone minor API version.

Functions§

ks_arch_supported
Determines if the given architecture is supported by this library.
ks_asm
Assembles a program from an input string containing assembly instructions.
ks_close
Closes the Keystone instance.
ks_errno
Reports the latest error number after an API call failed.
ks_free
Frees memory allocated by ks_asm().
ks_open
Crates a new instance of the Keystone engine.
ks_option
Sets an option of the Keystone engine after the instance has been created.
ks_strerror
Returns a string describing the given error code.
ks_version
Returns the combined API version, as well as the major and minor version numbers.

Type Aliases§

KsHandle
Pointer to a KsEngine object.