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)
87int firstPart = (_array.Length - _head < numToCopy) ? _array.Length - _head : numToCopy; 88Array.Copy(_array, _head, q._array, 0, firstPart); 91Array.Copy(_array, 0, q._array, _array.Length - _head, numToCopy); 109if (_head < _tail) 110Array.Clear(_array, _head, _size); 113Array.Clear(_array, _head, _array.Length - _head); 143int firstPart = (_array.Length - _head < numToCopy) ? _array.Length - _head : numToCopy; 144Array.Copy(_array, _head, array, index, firstPart); 147Array.Copy(_array, 0, array, index + _array.Length - _head, numToCopy); 185object? removed = _array[_head]; 186_array[_head] = null; 187_head = (_head + 1) % _array.Length; 201return _array[_head]; 220int index = _head; 242return _array[(_head + i) % _array.Length]; 255if (_head < _tail) 257Array.Copy(_array, _head, arr, 0, _size); 261Array.Copy(_array, _head, arr, 0, _array.Length - _head); 262Array.Copy(_array, 0, arr, _array.Length - _head, _tail); 276if (_head < _tail) 278Array.Copy(_array, _head, newarray, 0, _size); 282Array.Copy(_array, _head, newarray, 0, _array.Length - _head); 283Array.Copy(_array, 0, newarray, _array.Length - _head, _tail);