8 writes to _size
System.Collections (8)
System\Collections\Generic\PriorityQueue.cs (8)
160
_nodes = EnumerableHelpers.ToArray(items, out
_size
);
212
_size
= currentSize + 1;
420
_size
= count;
437
_size
= i;
493
_size
= i;
535
int newSize = --
_size
;
582
_size
= 0;
657
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
;
204
int currentSize =
_size
;
231
if (
_size
== 0)
246
if (
_size
== 0)
270
if (
_size
== 0)
317
if (
_size
!= 0)
343
if (
_size
!= 0)
368
if (
_size
!= 0)
408
if (collection is not null && (count = collection.Count) > _nodes.Length -
_size
)
410
Grow(checked(
_size
+ count));
413
if (
_size
== 0)
442
if (
_size
> 1)
471
(count = collection.Count) > _nodes.Length -
_size
)
473
Grow(checked(
_size
+ count));
476
if (
_size
== 0)
580
Array.Clear(_nodes, 0,
_size
);
619
if (
_size
< threshold)
621
Array.Resize(ref _nodes,
_size
);
700
int lastParentWithChildren = GetParentIndex(
_size
- 1);
727
Debug.Assert(0 <= nodeIndex && nodeIndex <
_size
);
759
Debug.Assert(0 <= nodeIndex && nodeIndex <
_size
);
793
Debug.Assert(0 <= nodeIndex && nodeIndex <
_size
);
796
int size =
_size
;
841
Debug.Assert(0 <= nodeIndex && nodeIndex <
_size
);
845
int size =
_size
;
885
ReadOnlySpan<(TElement Element, TPriority Priority)> nodes = _nodes.AsSpan(0,
_size
);
950
public int Count => _queue.
_size
;
973
if (array.Length - index < _queue.
_size
)
980
Array.Copy(_queue._nodes, 0, array, index, _queue.
_size
);
1020
if (_version == localQueue._version && ((uint)_index < (uint)localQueue.
_size
))
1037
_index = _queue.
_size
+ 1;