13 writes to _pos
System.Web.HttpUtility (13)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
12
_pos
+= charsWritten;
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
23
_pos
= 0;
30
_pos
= 0;
40
_pos
= value;
144
_pos
+= count;
168
_pos
+= count;
179
_pos
= pos + 1;
199
_pos
= pos + 1;
220
_pos
+= s.Length;
235
_pos
+= count;
251
_pos
+= length;
263
_pos
+= value.Length;
275
_pos
= origPos + length;
28 references to _pos
System.Web.HttpUtility (28)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
10
if (value.TryFormat(_chars.Slice(
_pos
), out int charsWritten, format, provider))
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (27)
35
get =>
_pos
;
53
Grow(capacity -
_pos
);
85
Debug.Assert(index <
_pos
);
92
string s = _chars.Slice(0,
_pos
).ToString();
111
return _chars.Slice(0,
_pos
);
114
public ReadOnlySpan<char> AsSpan() => _chars.Slice(0,
_pos
);
115
public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start,
_pos
- start);
120
if (_chars.Slice(0,
_pos
).TryCopyTo(destination))
122
charsWritten =
_pos
;
136
if (
_pos
> _chars.Length - count)
141
int remaining =
_pos
- index;
156
if (
_pos
> (_chars.Length - count))
161
int remaining =
_pos
- index;
174
int pos =
_pos
;
195
int pos =
_pos
;
209
int pos =
_pos
;
225
if (
_pos
> _chars.Length - count)
230
Span<char> dst = _chars.Slice(
_pos
, count);
240
int pos =
_pos
;
246
Span<char> dst = _chars.Slice(
_pos
, length);
256
int pos =
_pos
;
262
value.CopyTo(_chars.Slice(
_pos
));
269
int origPos =
_pos
;
289
/// <see cref="
_pos
"/> whichever is greater.
298
Debug.Assert(
_pos
> _chars.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed.");
305
(uint)(
_pos
+ additionalCapacityBeyondPos),
312
_chars.Slice(0,
_pos
).CopyTo(poolArray);