Function capstone_sys::cs_option[][src]

pub unsafe extern "C" fn cs_option(
    handle: csh,
    type_: cs_opt_type,
    value: usize
) -> Type
Expand description

Set option for disassembling engine at runtime

@handle: handle returned by cs_open() @type: type of option to be set @value: option value corresponding with @type

@return: CS_ERR_OK on success, or other value on failure. Refer to cs_err enum for detailed error.

NOTE: in the case of CS_OPT_MEM, handle’s value can be anything, so that cs_option(handle, CS_OPT_MEM, value) can (i.e must) be called even before cs_open()