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)
28
get =>
_pos
;
41
Debug.Assert(index <
_pos
);
49
int pos =
_pos
;
67
int pos =
_pos
;
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));
111
int pos =
_pos
;
127
int pos =
_pos
;
137
Debug.Assert(
_pos
== _span.Length);
138
int pos =
_pos
;
146
return _span.Slice(0,
_pos
);
151
if (_span.Slice(0,
_pos
).TryCopyTo(destination))
153
itemsWritten =
_pos
;
164
int pos =
_pos
;
194
/// <see cref="
_pos
"/> whichever is greater.
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);
238
ArrayPool<T>.Shared.Return(toReturn,
_pos
);