2 writes to _span
System.Text.RegularExpressions (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
18
_span
= initialSpan;
197
_span
= _arrayFromPool = array;
25 references to _span
System.Text.RegularExpressions (25)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (24)
29
Debug.Assert(value <=
_span
.Length);
39
return ref
_span
[index];
49
Span<T> span =
_span
;
65
Span<T> span =
_span
;
80
if ((uint)(_pos + source.Length) > (uint)
_span
.Length)
82
Grow(
_span
.Length - _pos + source.Length);
85
source.CopyTo(
_span
.Slice(_pos));
93
if ((uint)(_pos + source.Length) > (uint)
_span
.Length)
98
_span
.Slice(0, _pos).CopyTo(
_span
.Slice(source.Length));
99
source.CopyTo(
_span
);
109
Span<T> span =
_span
;
125
Grow(
_span
.Length - pos + length);
127
return
_span
.Slice(pos, length);
134
Debug.Assert(_pos ==
_span
.Length);
137
_span
[pos] = item;
143
return
_span
.Slice(0, _pos);
148
if (
_span
.Slice(0, _pos).TryCopyTo(destination))
180
int nextCapacity = Math.Max(
_span
.Length != 0 ?
_span
.Length * 2 : 4,
_span
.Length + additionalCapacityRequired);
190
nextCapacity = Math.Max(Math.Max(
_span
.Length + 1, ArrayMaxLength),
_span
.Length);
194
_span
.CopyTo(array);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17
return
_span
[_pos];