Function capstone_sys::cs_malloc
source · pub unsafe extern "C" fn cs_malloc(handle: csh) -> *mut cs_insn
Expand description
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)