예제 #1
0
 internal Enumerator(CircularBuffer <T> circularBuffer, long targetCount)
 {
     this.Current        = null;
     this.items          = null;
     this.circularBuffer = circularBuffer;
     this.targetCount    = targetCount;
     this.itemIndex      = 0;
     this.moveNextFunc   = MoveNextCircularBuffer;
 }
예제 #2
0
 internal Enumerator(T[] items, long targetCount)
 {
     this.Current        = null;
     this.circularBuffer = null;
     this.items          = items;
     this.targetCount    = targetCount;
     this.itemIndex      = 0;
     this.moveNextFunc   = MoveNextArray;
 }
예제 #3
0
 internal Enumerator(T item)
 {
     this.Current        = item;
     this.circularBuffer = null;
     this.items          = null;
     this.targetCount    = -1;
     this.itemIndex      = 0;
     this.moveNextFunc   = MoveNextSingleItem;
 }