13 writes to _pos
System.Private.Windows.Core (13)
System\Text\ValueStringBuilder.cs (13)
31_pos = 0; 38_pos = 0; 45_pos = 0; 55_pos = value; 165_pos += count; 185_pos += count; 195_pos = pos + 1; 222_pos = pos + 1; 239_pos += s.Length; 252_pos += charsWritten; 273_pos += count; 290_pos += length; 302_pos += value.Length;
27 references to _pos
System.Private.Windows.Core (27)
System\Text\ValueStringBuilder.cs (27)
50readonly get => _pos; 68Grow(capacity - _pos); 101Debug.Assert(index < _pos); 106public override readonly string ToString() => _chars[.._pos].ToString(); 132return _chars[.._pos]; 135public readonly ReadOnlySpan<char> AsSpan() => _chars[.._pos]; 136public readonly ReadOnlySpan<char> AsSpan(int start) => _chars[start.._pos]; 141if (_chars[.._pos].TryCopyTo(destination)) 143charsWritten = _pos; 157if (_pos > _chars.Length - count) 162int remaining = _pos - index; 177if (_pos > (_chars.Length - count)) 182int remaining = _pos - index; 191int pos = _pos; 217int pos = _pos; 232int pos = _pos; 247while (!((ISpanFormattable)value).TryFormat(_chars[_pos..], out charsWritten, format: default, provider: default)) 262if (_pos > _chars.Length - count) 267Span<char> dst = _chars.Slice(_pos, count); 278int pos = _pos; 284Span<char> dst = _chars.Slice(_pos, length); 295int pos = _pos; 301value.CopyTo(_chars[_pos..]); 315/// <see cref="_pos"/> whichever is greater. 324Debug.Assert(_pos > _chars.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed."); 331(uint)(_pos + additionalCapacityBeyondPos), 338_chars[.._pos].CopyTo(poolArray);