12 writes to _pos
System.Private.Xml (12)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
12
_pos
+= charsWritten;
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (11)
24
_pos
= 0;
31
_pos
= 0;
41
_pos
= value;
115
_pos
+= count;
139
_pos
+= count;
150
_pos
= pos + 1;
170
_pos
= pos + 1;
191
_pos
+= s.Length;
206
_pos
+= count;
218
_pos
+= value.Length;
230
_pos
= origPos + length;
25 references to _pos
System.Private.Xml (25)
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 (24)
36
get =>
_pos
;
54
Grow(capacity -
_pos
);
63
EnsureCapacity(
_pos
+ 1);
64
_chars[
_pos
] = '\0';
82
Debug.Assert(index <
_pos
);
93
string s = _chars.Slice(0,
_pos
).ToString();
101
public ReadOnlySpan<char> AsSpan() => _chars.Slice(0,
_pos
);
102
public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start,
_pos
- start);
107
if (
_pos
> _chars.Length - count)
112
int remaining =
_pos
- index;
127
if (
_pos
> (_chars.Length - count))
132
int remaining =
_pos
- index;
145
int pos =
_pos
;
166
int pos =
_pos
;
180
int pos =
_pos
;
196
if (
_pos
> _chars.Length - count)
201
Span<char> dst = _chars.Slice(
_pos
, count);
211
int pos =
_pos
;
217
value.CopyTo(_chars.Slice(
_pos
));
224
int origPos =
_pos
;
244
/// <see cref="
_pos
"/> whichever is greater.
253
Debug.Assert(
_pos
> _chars.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed.");
260
(uint)(
_pos
+ additionalCapacityBeyondPos),
267
_chars.Slice(0,
_pos
).CopyTo(poolArray);