12 writes to _pos
System.Drawing.Common (12)
src\Common\src\ValueStringBuilder.cs (12)
22
_pos
= 0;
29
_pos
= 0;
39
_pos
= value;
142
_pos
+= count;
162
_pos
+= count;
172
_pos
= pos + 1;
192
_pos
= pos + 1;
209
_pos
+= s.Length;
225
_pos
+= count;
242
_pos
+= length;
254
_pos
+= value.Length;
266
_pos
= origPos + length;
27 references to _pos
System.Drawing.Common (27)
src\Common\src\ValueStringBuilder.cs (27)
34
readonly get =>
_pos
;
52
Grow(capacity -
_pos
);
82
Debug.Assert(index <
_pos
);
89
string s = _chars[..
_pos
].ToString();
109
return _chars[..
_pos
];
112
public readonly ReadOnlySpan<char> AsSpan() => _chars[..
_pos
];
113
public readonly ReadOnlySpan<char> AsSpan(int start) => _chars[start..
_pos
];
118
if (_chars[..
_pos
].TryCopyTo(destination))
120
charsWritten =
_pos
;
134
if (
_pos
> _chars.Length - count)
139
int remaining =
_pos
- index;
154
if (
_pos
> (_chars.Length - count))
159
int remaining =
_pos
- index;
168
int pos =
_pos
;
188
int pos =
_pos
;
202
int pos =
_pos
;
214
if (
_pos
> _chars.Length - count)
219
Span<char> dst = _chars.Slice(
_pos
, count);
230
int pos =
_pos
;
236
Span<char> dst = _chars.Slice(
_pos
, length);
247
int pos =
_pos
;
253
value.CopyTo(_chars[
_pos
..]);
260
int origPos =
_pos
;
280
/// <see cref="
_pos
"/> whichever is greater.
289
Debug.Assert(
_pos
> _chars.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed.");
296
(uint)(
_pos
+ additionalCapacityBeyondPos),
303
_chars[..
_pos
].CopyTo(poolArray);