12 writes to _pos
System.Private.Windows.Core (12)
System\Text\ValueStringBuilder.cs (12)
25
_pos
= 0;
32
_pos
= 0;
42
_pos
= value;
150
_pos
+= count;
170
_pos
+= count;
180
_pos
= pos + 1;
201
_pos
= pos + 1;
218
_pos
+= s.Length;
234
_pos
+= count;
251
_pos
+= length;
263
_pos
+= value.Length;
275
_pos
= origPos + length;
27 references to _pos
System.Private.Windows.Core (27)
System\Text\ValueStringBuilder.cs (27)
37
readonly get =>
_pos
;
55
Grow(capacity -
_pos
);
88
Debug.Assert(index <
_pos
);
95
string s = _chars[..
_pos
].ToString();
117
return _chars[..
_pos
];
120
public readonly ReadOnlySpan<char> AsSpan() => _chars[..
_pos
];
121
public readonly ReadOnlySpan<char> AsSpan(int start) => _chars[start..
_pos
];
126
if (_chars[..
_pos
].TryCopyTo(destination))
128
charsWritten =
_pos
;
142
if (
_pos
> _chars.Length - count)
147
int remaining =
_pos
- index;
162
if (
_pos
> (_chars.Length - count))
167
int remaining =
_pos
- index;
176
int pos =
_pos
;
196
int pos =
_pos
;
211
int pos =
_pos
;
223
if (
_pos
> _chars.Length - count)
228
Span<char> dst = _chars.Slice(
_pos
, count);
239
int pos =
_pos
;
245
Span<char> dst = _chars.Slice(
_pos
, length);
256
int pos =
_pos
;
262
value.CopyTo(_chars[
_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[..
_pos
].CopyTo(poolArray);