Beispiel #1
0
 private static InterpTimedEvent.ArgList Recycle(ref InterpTimedEvent.ArgList.Dump dump, int length)
 {
     if (dump.count <= 0)
     {
         return(new InterpTimedEvent.ArgList(length));
     }
     InterpTimedEvent.ArgList argList = dump.last;
     dump.last        = argList.dumpNext;
     dump.count       = dump.count - 1;
     argList.dumpNext = null;
     argList.disposed = false;
     return(argList);
 }
Beispiel #2
0
 private void AddToDump(ref InterpTimedEvent.ArgList.Dump dump)
 {
     this.dumpNext = dump.last;
     dump.count    = dump.count + 1;
     dump.last     = this;
 }