instr_get_offset

Function instr_get_offset 

Source
pub unsafe extern "C" fn instr_get_offset(
    instr: *mut instr_t,
) -> usize
Expand description

Get the relative offset of \p instr in an encoded instruction list.

\note instrlist_encode* sets the offset field in each instr_t in the encoded instruction list. Therefore, this API must be called only after calling instrlist_encode*.