3 writes to _startIndex
Microsoft.ML.Core (3)
Utilities\FixedSizeQueue.cs (3)
82
_startIndex
= (_startIndex + 1) % _array.Length;
113
_startIndex
= (_startIndex + 1) % _array.Length;
136
_startIndex
= 0;
13 references to _startIndex
Microsoft.ML.Core (13)
Utilities\FixedSizeQueue.cs (13)
34
Contracts.Assert(0 <=
_startIndex
&&
_startIndex
< _array.Length);
71
return _array[(
_startIndex
+ index) % _array.Length];
81
_array[
_startIndex
] = item;
82
_startIndex = (
_startIndex
+ 1) % _array.Length;
86
_array[(
_startIndex
+ _count) % _array.Length] = item;
97
return _array[
_startIndex
];
104
return _array[(
_startIndex
+ _count - 1) % _array.Length];
111
T item = _array[
_startIndex
];
112
_array[
_startIndex
] = default(T);
113
_startIndex = (
_startIndex
+ 1) % _array.Length;
123
int lastIndex = (
_startIndex
+ _count - 1) % _array.Length;
135
_array[(
_startIndex
+ i) % _array.Length] = default(T);