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)
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)
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
;
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))
209
Debug.Assert(_pos >
_span
.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed.");
215
int nextCapacity = Math.Max(
_span
.Length != 0 ?
_span
.Length * 2 : 4, _pos + additionalCapacityBeyondPos);
225
nextCapacity = Math.Max(Math.Max(
_span
.Length + 1, ArrayMaxLength),
_span
.Length);
229
_span
.CopyTo(array);