4 writes to _head
System (4)
compmod\system\collections\generic\queue.cs (4)
64
_head
= 0;
119
_head
= 0;
243
_head
= (_head + 1) % _array.Length;
325
_head
= 0;
28 references to _head
System (28)
compmod\system\collections\generic\queue.cs (28)
112
if (
_head
< _tail)
113
Array.Clear(_array,
_head
, _size);
115
Array.Clear(_array,
_head
, _array.Length -
_head
);
147
int firstPart = (_array.Length -
_head
< numToCopy) ? _array.Length -
_head
: numToCopy;
148
Array.Copy(_array,
_head
, array, arrayIndex, firstPart);
151
Array.Copy(_array, 0, array, arrayIndex+_array.Length -
_head
, numToCopy);
182
int firstPart = (_array.Length -
_head
< numToCopy) ? _array.Length -
_head
: numToCopy;
183
Array.Copy(_array,
_head
, array, index, firstPart);
187
Array.Copy(_array, 0, array, index+_array.Length -
_head
, numToCopy);
241
T removed = _array[
_head
];
242
_array[
_head
] = default(T);
243
_head = (
_head
+ 1) % _array.Length;
257
return _array[
_head
];
266
int index =
_head
;
286
return _array[(
_head
+ i) % _array.Length];
300
if (
_head
< _tail) {
301
Array.Copy(_array,
_head
, arr, 0, _size);
303
Array.Copy(_array,
_head
, arr, 0, _array.Length -
_head
);
304
Array.Copy(_array, 0, arr, _array.Length -
_head
, _tail);
316
if (
_head
< _tail) {
317
Array.Copy(_array,
_head
, newarray, 0, _size);
319
Array.Copy(_array,
_head
, newarray, 0, _array.Length -
_head
);
320
Array.Copy(_array, 0, newarray, _array.Length -
_head
, _tail);