8 writes to _pos
System.Private.CoreLib (8)
src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (8)
33_pos = value; 56_pos = pos + 1; 72_pos = pos + 1; 89_pos += source.Length; 103_pos += source.Length; 115_pos = pos + length; 129_pos += length; 141_pos = pos + 1;
20 references to _pos
System.Private.CoreLib (20)
src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (20)
28get => _pos; 41Debug.Assert(index < _pos); 49int pos = _pos; 67int pos = _pos; 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)); 111int pos = _pos; 127int pos = _pos; 137Debug.Assert(_pos == _span.Length); 138int pos = _pos; 146return _span.Slice(0, _pos); 151if (_span.Slice(0, _pos).TryCopyTo(destination)) 153itemsWritten = _pos; 164int pos = _pos; 194/// <see cref="_pos"/> whichever is greater. 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); 238ArrayPool<T>.Shared.Return(toReturn, _pos);