6 writes to _nodes
System.Collections (6)
System\Collections\Generic\PriorityQueue.cs (6)
71_nodes = Array.Empty<(TElement, TPriority)>(); 98_nodes = Array.Empty<(TElement, TPriority)>(); 118_nodes = new (TElement, TPriority)[initialCapacity]; 160_nodes = EnumerableHelpers.ToArray(items, out _size); 616Array.Resize(ref _nodes, _size); 644Array.Resize(ref _nodes, newcapacity);
34 references to _nodes
System.Collections (34)
System\Collections\Generic\PriorityQueue.cs (34)
202if (_nodes.Length == currentSize) 231return _nodes[0].Element; 246TElement element = _nodes[0].Element; 270(TElement Element, TPriority Priority) root = _nodes[0]; 280_nodes[0] = (element, priority); 291_nodes[0] = (element, priority); 314(element, priority) = _nodes[0]; 340(element, priority) = _nodes[0]; 365(TElement Element, TPriority Priority) root = _nodes[0]; 403if (collection is not null && (count = collection.Count) > _nodes.Length - _size) 414collection.CopyTo(_nodes, 0); 420(TElement, TPriority)[] nodes = _nodes; 426nodes = _nodes; 466(count = collection.Count) > _nodes.Length - _size) 476(TElement, TPriority)[] nodes = _nodes; 482nodes = _nodes; 528(TElement Element, TPriority Priority)[] nodes = _nodes; 575Array.Clear(_nodes, 0, _size); 594if (_nodes.Length < capacity) 600return _nodes.Length; 613int threshold = (int)(_nodes.Length * 0.9); 626Debug.Assert(_nodes.Length < minCapacity); 631int newcapacity = GrowFactor * _nodes.Length; 638newcapacity = Math.Max(newcapacity, _nodes.Length + MinimumGrow); 657(TElement Element, TPriority Priority) lastNode = _nodes[lastNodeIndex]; 670_nodes[lastNodeIndex] = default; 694(TElement Element, TPriority Priority)[] nodes = _nodes; 724(TElement Element, TPriority Priority)[] nodes = _nodes; 757(TElement Element, TPriority Priority)[] nodes = _nodes; 790(TElement Element, TPriority Priority)[] nodes = _nodes; 839(TElement Element, TPriority Priority)[] nodes = _nodes; 880ReadOnlySpan<(TElement Element, TPriority Priority)> nodes = _nodes.AsSpan(0, _size); 975Array.Copy(_queue._nodes, 0, array, index, _queue._size); 1017_current = localQueue._nodes[_index];