2 writes to _span
System.Private.CoreLib (2)
src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
18_span = scratchBuffer!; 232_span = _arrayFromPool = array;
22 references to _span
System.Private.CoreLib (22)
src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (22)
32Debug.Assert(value <= _span.Length); 42return ref _span[index]; 52Span<T> span = _span; 68Span<T> span = _span; 83if ((uint)(_pos + source.Length) > (uint)_span.Length) 88source.CopyTo(_span.Slice(_pos)); 96if ((uint)(_pos + source.Length) > (uint)_span.Length) 101_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 102source.CopyTo(_span); 112Span<T> span = _span; 130return _span.Slice(pos, length); 137Debug.Assert(_pos == _span.Length); 140_span[pos] = item; 146return _span.Slice(0, _pos); 151if (_span.Slice(0, _pos).TryCopyTo(destination)) 209Debug.Assert(_pos > _span.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed."); 215int nextCapacity = Math.Max(_span.Length != 0 ? _span.Length * 2 : 4, _pos + additionalCapacityBeyondPos); 225nextCapacity = Math.Max(Math.Max(_span.Length + 1, ArrayMaxLength), _span.Length); 229_span.CopyTo(array);