C# Class SharpDisasm.Udis86.udis86

The C# udis86 library ported from C.

For more information about how to use the C-based library see the udis86 project on GitHub https://github.com/vmt/udis86

This static class is thread safe ONLY WHEN using separate ud instances.

This class is deliberately written to match as closely as possible to the original C-library.
显示文件 Open project: spazzarama/SharpDisasm

Public Methods

Method Description
ud_disassemble ( ud &u ) : int
ud_init ( ud &u ) : void
ud_insn_asm ( ud &u ) : string

returns the disassembled instruction

ud_insn_len ( ud &u ) : int

Returns the count of bytes disassembled.

ud_insn_opr ( ud &u, int n, ud_operand &op ) : void
ud_lookup_mnemonic ( ud_mnemonic_code c ) : string
ud_opr_is_gpr ( ud_operand &opr ) : bool
ud_opr_is_sreg ( ud_operand &opr ) : bool
ud_set_input_buffer ( ud &u, IAssemblyCode code ) : void

Set the buffer as input

ud_set_input_file ( ud &u, System file ) : void
ud_set_mode ( ud &u, byte m ) : void

Set Disassembly mode

ud_set_pc ( ud &u, ulong o ) : void
ud_set_syntax ( ud &u, UdTranslatorDelegate t ) : void
ud_set_vendor ( ud &u, int v ) : void

Private Methods

Method Description
inp_file_hook ( ud &u ) : int
ud_inp_init ( ud &u ) : void
ud_input_end ( ud &u ) : int
ud_input_skip ( ud &u, int n ) : void
ud_insn_hex ( ud &u ) : string
ud_insn_mnemonic ( ud &u ) : ud_mnemonic_code
ud_insn_off ( ud &u ) : ulong
ud_insn_ptr ( ud &u ) : IAssemblyCode
ud_set_asm_buffer ( ud &u, char buf, int size ) : void
ud_set_input_hook ( ud &u, UdInputCallback hook ) : void
ud_set_sym_resolver ( ud &u, UdSymbolResolverDelegate resolver ) : void

Method Details

ud_disassemble() public static method

public static ud_disassemble ( ud &u ) : int
u ud
return int

ud_init() public static method

public static ud_init ( ud &u ) : void
u ud
return void

ud_insn_asm() public static method

returns the disassembled instruction
public static ud_insn_asm ( ud &u ) : string
u ud
return string

ud_insn_len() public static method

Returns the count of bytes disassembled.
public static ud_insn_len ( ud &u ) : int
u ud
return int

ud_insn_opr() public static method

public static ud_insn_opr ( ud &u, int n, ud_operand &op ) : void
u ud
n int
op ud_operand
return void

ud_lookup_mnemonic() public static method

public static ud_lookup_mnemonic ( ud_mnemonic_code c ) : string
c ud_mnemonic_code
return string

ud_opr_is_gpr() public static method

public static ud_opr_is_gpr ( ud_operand &opr ) : bool
opr ud_operand
return bool

ud_opr_is_sreg() public static method

public static ud_opr_is_sreg ( ud_operand &opr ) : bool
opr ud_operand
return bool

ud_set_input_buffer() public static method

Set the buffer as input
public static ud_set_input_buffer ( ud &u, IAssemblyCode code ) : void
u ud The u.
code IAssemblyCode The code.
return void

ud_set_input_file() public static method

public static ud_set_input_file ( ud &u, System file ) : void
u ud
file System
return void

ud_set_mode() public static method

Set Disassembly mode
public static ud_set_mode ( ud &u, byte m ) : void
u ud
m byte
return void

ud_set_pc() public static method

public static ud_set_pc ( ud &u, ulong o ) : void
u ud
o ulong
return void

ud_set_syntax() public static method

public static ud_set_syntax ( ud &u, UdTranslatorDelegate t ) : void
u ud
t UdTranslatorDelegate
return void

ud_set_vendor() public static method

public static ud_set_vendor ( ud &u, int v ) : void
u ud
v int
return void