2 writes to _array
System.Collections.NonGeneric (2)
System\Collections\Queue.cs (2)
58
_array
= new object[capacity];
287
_array
= newarray;
46 references to _array
System.Collections.NonGeneric (46)
System\Collections\Queue.cs (46)
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);
110
Array.Clear(
_array
, _head, _size);
113
Array.Clear(
_array
, _head,
_array
.Length - _head);
114
Array.Clear(
_array
, 0, _tail);
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);
154
if (_size ==
_array
.Length)
156
int newcapacity = (int)((long)
_array
.Length * (long)_growFactor / 100);
157
if (newcapacity <
_array
.Length + MinimumGrow)
159
newcapacity =
_array
.Length + MinimumGrow;
164
_array
[_tail] = obj;
165
_tail = (_tail + 1) %
_array
.Length;
185
object? removed =
_array
[_head];
186
_array
[_head] = null;
187
_head = (_head + 1) %
_array
.Length;
201
return
_array
[_head];
227
if (
_array
[index] == null)
230
else if (
_array
[index] != null &&
_array
[index]!.Equals(obj))
234
index = (index + 1) %
_array
.Length;
242
return
_array
[(_head + i) %
_array
.Length];
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);
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);
432
_currentElement = _q.
_array
;
445
_currentElement = _q.
_array
;
461
if (_currentElement == _q.
_array
)
479
_currentElement = _q.
_array
;