コード例 #1
0
 public virtual void Clear()
 {
     collinstr.Clear();
     pointer        = 0;
     exceptionTable = ExceptionTable.Empty;
 }
コード例 #2
0
 public FullInstructionSequence(VBStyleCollection <Instruction, int> collinstr, ExceptionTable
                                extable)
     : base(collinstr)
 {
     // *****************************************************************************
     // constructors
     // *****************************************************************************
     this.exceptionTable = extable;
     // translate raw exception handlers to instr
     foreach (ExceptionHandler handler in extable.GetHandlers())
     {
         handler.from_instr    = this.GetPointerByAbsOffset(handler.from);
         handler.to_instr      = this.GetPointerByAbsOffset(handler.to);
         handler.handler_instr = this.GetPointerByAbsOffset(handler.handler);
     }
 }