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)
32
Debug.Assert(value <=
_span
.Length);
42
return ref
_span
[index];
52
Span<T> span =
_span
;
68
Span<T> span =
_span
;
83
if ((uint)(_pos + source.Length) > (uint)
_span
.Length)
85
Grow(
_span
.Length - _pos + source.Length);
88
source.CopyTo(
_span
.Slice(_pos));
96
if ((uint)(_pos + source.Length) > (uint)
_span
.Length)
101
_span
.Slice(0, _pos).CopyTo(
_span
.Slice(source.Length));
102
source.CopyTo(
_span
);
112
Span<T> span =
_span
;
128
Grow(
_span
.Length - pos + length);
130
return
_span
.Slice(pos, length);
137
Debug.Assert(_pos ==
_span
.Length);
140
_span
[pos] = item;
146
return
_span
.Slice(0, _pos);
151
if (
_span
.Slice(0, _pos).TryCopyTo(destination))
183
int nextCapacity = Math.Max(
_span
.Length != 0 ?
_span
.Length * 2 : 4,
_span
.Length + additionalCapacityRequired);
193
nextCapacity = 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)
17
return
_span
[_pos];