[][src]Function libudis86_sys::ud_disassemble

pub unsafe extern "C" fn ud_disassemble(ud: *mut ud) -> c_uint

Disassembles the next instruction in the input stream. Returns the number of bytes disassembled. A 0 indicates end of input. Note, to restart disassembly after the end of input, you must call one of the input setting functions with a new source of input.

A common use-case pattern for this function is in a loop:

while ud_disassemble(&mut object) > 0 {
  // Use or print decode info.
}