4 writes to _head
System.Collections.NonGeneric (4)
System\Collections\Queue.cs (4)
59
_head
= 0;
120
_head
= 0;
187
_head
= (_head + 1) % _array.Length;
288
_head
= 0;
28 references to _head
System.Collections.NonGeneric (28)
System\Collections\Queue.cs (28)
87
int firstPart = (_array.Length -
_head
< numToCopy) ? _array.Length -
_head
: numToCopy;
88
Array.Copy(_array,
_head
, q._array, 0, firstPart);
91
Array.Copy(_array, 0, q._array, _array.Length -
_head
, numToCopy);
109
if (
_head
< _tail)
110
Array.Clear(_array,
_head
, _size);
113
Array.Clear(_array,
_head
, _array.Length -
_head
);
143
int firstPart = (_array.Length -
_head
< numToCopy) ? _array.Length -
_head
: numToCopy;
144
Array.Copy(_array,
_head
, array, index, firstPart);
147
Array.Copy(_array, 0, array, index + _array.Length -
_head
, numToCopy);
185
object? removed = _array[
_head
];
186
_array[
_head
] = null;
187
_head = (
_head
+ 1) % _array.Length;
201
return _array[
_head
];
220
int index =
_head
;
242
return _array[(
_head
+ i) % _array.Length];
255
if (
_head
< _tail)
257
Array.Copy(_array,
_head
, arr, 0, _size);
261
Array.Copy(_array,
_head
, arr, 0, _array.Length -
_head
);
262
Array.Copy(_array, 0, arr, _array.Length -
_head
, _tail);
276
if (
_head
< _tail)
278
Array.Copy(_array,
_head
, newarray, 0, _size);
282
Array.Copy(_array,
_head
, newarray, 0, _array.Length -
_head
);
283
Array.Copy(_array, 0, newarray, _array.Length -
_head
, _tail);