Function capstone_sys::cs_option
[−]
[src]
pub unsafe extern fn cs_option(handle: csh,
typ: cs_opt_type,
value: size_t)
-> cs_err
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()