Function capstone_sys::cs_open[][src]

pub unsafe extern "C" fn cs_open(
    arch: cs_arch,
    mode: cs_mode,
    handle: *mut csh
) -> Type
Expand description

Initialize CS handle: this must be done before any usage of CS.

@arch: architecture type (CS_ARCH_) @mode: hardware mode. This is combined of CS_MODE_ @handle: pointer to handle, which will be updated at return time

@return CS_ERR_OK on success, or other value on failure (refer to cs_err enum for detailed error).