4 writes to _head
mscorlib (4)
system\collections\queue.cs (4)
66
_head
= 0;
127
_head
= 0;
193
_head
= (_head + 1) % _array.Length;
284
_head
= 0;
28 references to _head
mscorlib (28)
system\collections\queue.cs (28)
95
int firstPart = (_array.Length -
_head
< numToCopy) ? _array.Length -
_head
: numToCopy;
96
Array.Copy(_array,
_head
, q._array, 0, firstPart);
99
Array.Copy(_array, 0, q._array, _array.Length -
_head
, numToCopy);
120
if (
_head
< _tail)
121
Array.Clear(_array,
_head
, _size);
123
Array.Clear(_array,
_head
, _array.Length -
_head
);
152
int firstPart = (_array.Length -
_head
< numToCopy) ? _array.Length -
_head
: numToCopy;
153
Array.Copy(_array,
_head
, array, index, firstPart);
156
Array.Copy(_array, 0, array, index+_array.Length -
_head
, numToCopy);
191
Object removed = _array[
_head
];
192
_array[
_head
] = null;
193
_head = (
_head
+ 1) % _array.Length;
207
return _array[
_head
];
228
int index =
_head
;
246
return _array[(
_head
+ i) % _array.Length];
259
if (
_head
< _tail) {
260
Array.Copy(_array,
_head
, arr, 0, _size);
262
Array.Copy(_array,
_head
, arr, 0, _array.Length -
_head
);
263
Array.Copy(_array, 0, arr, _array.Length -
_head
, _tail);
275
if (
_head
< _tail) {
276
Array.Copy(_array,
_head
, newarray, 0, _size);
278
Array.Copy(_array,
_head
, newarray, 0, _array.Length -
_head
);
279
Array.Copy(_array, 0, newarray, _array.Length -
_head
, _tail);