Skip to main content

instr_build_bits

Function instr_build_bits 

Source
pub unsafe extern "C" fn instr_build_bits(
    drcontext: *mut c_void,
    opcode: c_int,
    num_bytes: uint,
) -> *mut instr_t
Expand description

Convenience routine: calls

  • instr_create(dcontext)
  • instr_set_opcode(instr, opcode)
  • instr_allocate_raw_bits(dcontext, instr, num_bytes)

and returns the resulting instr_t.