Function capstone_sys::cs_op_count [−][src]
pub unsafe extern "C" fn cs_op_count(
handle: csh,
insn: *const cs_insn,
op_type: c_uint
) -> c_int
Expand description
Count the number of operands of a given type. Find the operand type in header file of corresponding architecture (arm.h for ARM, x86.h for X86, …)
NOTE: this API is only valid when detail option is ON (which is OFF by default)
@handle: handle returned by cs_open() @insn: disassembled instruction structure received from cs_disasm() or cs_disasm_iter() @op_type: Operand type to be found.
@return: number of operands of given type @op_type in instruction @insn, or -1 on failure.