13 writes to _pos
System.Private.Windows.Core (13)
System\Text\ValueStringBuilder.cs (13)
29_pos = 0; 36_pos = 0; 43_pos = 0; 53_pos = value; 163_pos += count; 183_pos += count; 193_pos = pos + 1; 220_pos = pos + 1; 237_pos += s.Length; 250_pos += charsWritten; 271_pos += count; 288_pos += length; 300_pos += value.Length;
27 references to _pos
System.Private.Windows.Core (27)
System\Text\ValueStringBuilder.cs (27)
48readonly get => _pos; 66Grow(capacity - _pos); 99Debug.Assert(index < _pos); 104public override readonly string ToString() => _chars[.._pos].ToString(); 130return _chars[.._pos]; 133public readonly ReadOnlySpan<char> AsSpan() => _chars[.._pos]; 134public readonly ReadOnlySpan<char> AsSpan(int start) => _chars[start.._pos]; 139if (_chars[.._pos].TryCopyTo(destination)) 141charsWritten = _pos; 155if (_pos > _chars.Length - count) 160int remaining = _pos - index; 175if (_pos > (_chars.Length - count)) 180int remaining = _pos - index; 189int pos = _pos; 215int pos = _pos; 230int pos = _pos; 245while (!((ISpanFormattable)value).TryFormat(_chars[_pos..], out charsWritten, format: default, provider: default)) 260if (_pos > _chars.Length - count) 265Span<char> dst = _chars.Slice(_pos, count); 276int pos = _pos; 282Span<char> dst = _chars.Slice(_pos, length); 293int pos = _pos; 299value.CopyTo(_chars[_pos..]); 313/// <see cref="_pos"/> whichever is greater. 322Debug.Assert(_pos > _chars.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed."); 329(uint)(_pos + additionalCapacityBeyondPos), 336_chars[.._pos].CopyTo(poolArray);