Function capstone_sys::cs_malloc [] [src]

pub unsafe extern "C" fn cs_malloc(handle: csh) -> *mut cs_insn

Allocate memory for 1 instruction to be used by cs_disasm_iter().

handle: handle returned by cs_open()

NOTE: when no longer in use, you can reclaim the memory allocated for this instruction with cs_free(insn, 1)