SharpDisasm.Disassembler.Reset C# (CSharp) Method

Reset() public method

Reset to beginning of the buffer
public Reset ( ) : void
return void
        public void Reset()
        {
            InitUdis86();
            BytesDecoded = 0;
            _u.inp_buf_index = 0;
        }

Usage Example

Example #1
0
 public IEnumerable<Instruction> Disassemble(Disassembler disassembler)
 {
     disassembler.Reset();
     Instruction instruction;
     while ((instruction = disassembler.NextInstruction()) != null)
         yield return instruction;
 }