ErrorCode

Capstone error codes matching cs_err enum from capstone.h

Entries

Link copied to clipboard

No error - operation was successful

Link copied to clipboard

Out of memory

Link copied to clipboard

Unsupported architecture

Link copied to clipboard

Invalid handle

Link copied to clipboard

Invalid csh argument

Link copied to clipboard

Invalid/unsupported mode

Link copied to clipboard

Invalid/unsupported option

Link copied to clipboard

Information is unavailable because detail option is OFF

Link copied to clipboard

Dynamic memory management uninitialized (see CS_OPT_MEM)

Link copied to clipboard

Unsupported version (bindings)

Link copied to clipboard

Access irrelevant data in "diet" engine

Link copied to clipboard

Access irrelevant data in SKIPDATA mode

Link copied to clipboard

X86 AT&T syntax is unsupported (opt-out at compile time)

Link copied to clipboard

X86 Intel syntax is unsupported (opt-out at compile time)

Link copied to clipboard

X86 MASM syntax is unsupported (opt-out at compile time)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
fun ErrorCode.toError(arch: Architecture = Architecture.ARM, mode: BitField<Mode> = Mode.LITTLE_ENDIAN.toBitField(), syntax: Syntax = Syntax.DEFAULT): CapstoneError

Convert ErrorCode to CapstoneError

Link copied to clipboard
fun valueOf(value: String): ErrorCode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.