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)
33
Contracts.Assert(Utils.Size(
_array
) >= 0);
34
Contracts.Assert(0 <= _startIndex && _startIndex <
_array
.Length);
35
Contracts.Assert(0 <= _count && _count <=
_array
.Length);
52
return
_array
.Length;
61
return _count ==
_array
.Length;
71
return
_array
[(_startIndex + index) %
_array
.Length];
78
if (_count ==
_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;
124
T item =
_array
[lastIndex];
125
_array
[lastIndex] = default(T);
135
_array
[(_startIndex + i) %
_array
.Length] = default(T);