4 writes to _count
Microsoft.ML.Core (4)
Utilities\FixedSizeQueue.cs (4)
87
_count
++;
114
_count
--;
126
_count
--;
137
_count
= 0;
14 references to _count
Microsoft.ML.Core (14)
Utilities\FixedSizeQueue.cs (14)
35
Contracts.Assert(0 <=
_count
&&
_count
<= _array.Length);
43
return
_count
;
61
return
_count
== _array.Length;
70
Contracts.Assert(index >= 0 && index <
_count
);
78
if (
_count
== _array.Length)
86
_array[(_startIndex +
_count
) % _array.Length] = item;
96
Contracts.Assert(
_count
!= 0, "Array is empty");
103
Contracts.Assert(
_count
!= 0, "Array is empty");
104
return _array[(_startIndex +
_count
- 1) % _array.Length];
110
Contracts.Assert(
_count
!= 0, "Array is empty");
122
Contracts.Assert(
_count
!= 0, "Array is empty");
123
int lastIndex = (_startIndex +
_count
- 1) % _array.Length;
134
for (int i = 0; i <
_count
; i++)