SharpDisasm/Udis86/udis86.cs
/// <summary>
/// Disassembles one instruction and returns the number of bytes disassembled. A zero means end of disassembly.
/// </summary>
/// <param name="u"></param>
/// <returns></returns>
Disassembles one instruction and returns the number of bytes disassembled. A zero means end of disassembly.
Disassembles one instruction and returns the number of bytes disassembled . A zero means end of disassembly .
public static int
        ud_disassemble(ref ud u)
        {
            int len;
            if (u.inp_end > 0)
            {
                return 0;
            }
            if ((len = decode.ud_decode(ref u)) > 0)
            {
                if (u.translator != null)
                {
                    for (var i = 0; i < u.asm_buf.Length; i++)
                        u.asm_buf[i] = '\0';
                    u.translator(ref u);
                }
            }
            return len;
        }
public static int ud_disassemble ( ref ud u ) { int len ; if ( u . inp_end > 0 ) { return 0 ; } if ( ( len = decode . ud_decode ( ref u ) ) > 0 ) { if ( u . translator != null ) { for ( var i = 0 ; i < u . asm_buf . Length ; i ++ ) u . asm_buf [ i ] = ' \0 ' ; u . translator ( ref u ) ; } } return len ; }
Disassembles one instruction and returns the number of bytes disassembled.
Disassembles one instruction and returns the number of bytes disassembled .
None
ud
ref
u
None