SharpDisasm/Disassembler.cs
/// <summary>
/// Decodes a single instruction and increments buffer position.
/// </summary>
/// <returns></returns>
Decodes a single instruction and increments buffer position.
Decodes a single instruction and increments buffer position .
public Instruction NextInstruction()
        {
            int length = 0;
            if ((length = Udis86.udis86.ud_disassemble(ref _u)) > 0)
            {
                var instruction = new Instruction(ref _u, CopyBinaryToInstruction);
                if (!instruction.Error)
                {
                    BytesDecoded += length;
                }
                return instruction;
            }
            return null;
        }
public Instruction NextInstruction ( ) { int length = 0 ; if ( ( length = Udis86 . udis86 . ud_disassemble ( ref _u ) ) > 0 ) { var instruction = new Instruction ( ref _u , CopyBinaryToInstruction ) ; if ( ! instruction . Error ) { BytesDecoded += length ; } return instruction ; } return null ; }
Decodes a single instruction and increments buffer position.
Decodes a single instruction and increments buffer position .
None