2 writes to _span
System.Text.RegularExpressions (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
18_span = scratchBuffer!; 200_span = _arrayFromPool = array;
25 references to _span
System.Text.RegularExpressions (25)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (24)
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) 85Grow(_span.Length - _pos + source.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; 128Grow(_span.Length - pos + length); 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)) 183int nextCapacity = Math.Max(_span.Length != 0 ? _span.Length * 2 : 4, _span.Length + additionalCapacityRequired); 193nextCapacity = Math.Max(Math.Max(_span.Length + 1, ArrayMaxLength), _span.Length); 197_span.CopyTo(array);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];