8 writes to _size
System.Collections (8)
System\Collections\Generic\PriorityQueue.cs (8)
160
_nodes = EnumerableHelpers.ToArray(items, out
_size
);
207
_size
= currentSize + 1;
415
_size
= count;
432
_size
= i;
488
_size
= i;
530
int newSize = --
_size
;
577
_size
= 0;
652
int lastNodeIndex = --
_size
;
32 references to _size
System.Collections (32)
System\Collections\Generic\PriorityQueue.cs (32)
163
if (
_size
> 1)
172
public int Count =>
_size
;
199
int currentSize =
_size
;
226
if (
_size
== 0)
241
if (
_size
== 0)
265
if (
_size
== 0)
312
if (
_size
!= 0)
338
if (
_size
!= 0)
363
if (
_size
!= 0)
403
if (collection is not null && (count = collection.Count) > _nodes.Length -
_size
)
405
Grow(checked(
_size
+ count));
408
if (
_size
== 0)
437
if (
_size
> 1)
466
(count = collection.Count) > _nodes.Length -
_size
)
468
Grow(checked(
_size
+ count));
471
if (
_size
== 0)
575
Array.Clear(_nodes, 0,
_size
);
614
if (
_size
< threshold)
616
Array.Resize(ref _nodes,
_size
);
695
int lastParentWithChildren = GetParentIndex(
_size
- 1);
722
Debug.Assert(0 <= nodeIndex && nodeIndex <
_size
);
754
Debug.Assert(0 <= nodeIndex && nodeIndex <
_size
);
788
Debug.Assert(0 <= nodeIndex && nodeIndex <
_size
);
791
int size =
_size
;
836
Debug.Assert(0 <= nodeIndex && nodeIndex <
_size
);
840
int size =
_size
;
880
ReadOnlySpan<(TElement Element, TPriority Priority)> nodes = _nodes.AsSpan(0,
_size
);
945
public int Count => _queue.
_size
;
968
if (array.Length - index < _queue.
_size
)
975
Array.Copy(_queue._nodes, 0, array, index, _queue.
_size
);
1015
if (_version == localQueue._version && ((uint)_index < (uint)localQueue.
_size
))
1032
_index = _queue.
_size
+ 1;