Mode

expect enum Mode : INumericEnum, IFlagValue, Enum<Mode> (source)

Capstone disassembly mode flags.

These can be OR-combined to specify the disassembly mode. Maps to cs_mode enum from capstone.h

Example:

// 64-bit x86 in little-endian
val mode = Mode.MODE_64 or Mode.LITTLE_ENDIAN

// ARM Thumb mode with v8 extensions
val mode = Mode.THUMB or Mode.V8
actual enum Mode : INumericEnum, IFlagValue, Enum<Mode> (source)
actual enum Mode : INumericEnum, IFlagValue, Enum<Mode> (source)

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Types

Link copied to clipboard
expect object Companion : BitFieldEnum<Mode>
actual object Companion : BitFieldEnum<Mode>
actual object Companion : BitFieldEnum<Mode>

Properties

entries
Link copied to clipboard
expect val entries: EnumEntries<Mode>

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

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

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

Link copied to clipboard
expect open override val flag: ULong
actual open override val flag: ULong
actual open override val flag: ULong
value
Link copied to clipboard
open override val value: UInt
open override val value: Int

Functions

valueOf
Link copied to clipboard
expect fun valueOf(value: String): Mode

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.)

fun valueOf(value: String): Mode

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.)

fun valueOf(value: String): Mode

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.)

values
Link copied to clipboard
expect fun values(): Array<Mode>

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

fun values(): Array<Mode>

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

fun values(): Array<Mode>

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