1 write to _array
Microsoft.ML.Core (1)
Utilities\FixedSizeQueue.cs (1)
26_array = new T[capacity];
23 references to _array
Microsoft.ML.Core (23)
Utilities\FixedSizeQueue.cs (23)
33Contracts.Assert(Utils.Size(_array) >= 0); 34Contracts.Assert(0 <= _startIndex && _startIndex < _array.Length); 35Contracts.Assert(0 <= _count && _count <= _array.Length); 52return _array.Length; 61return _count == _array.Length; 71return _array[(_startIndex + index) % _array.Length]; 78if (_count == _array.Length) 81_array[_startIndex] = item; 82_startIndex = (_startIndex + 1) % _array.Length; 86_array[(_startIndex + _count) % _array.Length] = item; 97return _array[_startIndex]; 104return _array[(_startIndex + _count - 1) % _array.Length]; 111T item = _array[_startIndex]; 112_array[_startIndex] = default(T); 113_startIndex = (_startIndex + 1) % _array.Length; 123int lastIndex = (_startIndex + _count - 1) % _array.Length; 124T item = _array[lastIndex]; 125_array[lastIndex] = default(T); 135_array[(_startIndex + i) % _array.Length] = default(T);