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)
37readonly get => _pos; 55Grow(capacity - _pos); 88Debug.Assert(index < _pos); 95string s = _chars[.._pos].ToString(); 117return _chars[.._pos]; 120public readonly ReadOnlySpan<char> AsSpan() => _chars[.._pos]; 121public readonly ReadOnlySpan<char> AsSpan(int start) => _chars[start.._pos]; 126if (_chars[.._pos].TryCopyTo(destination)) 128charsWritten = _pos; 142if (_pos > _chars.Length - count) 147int remaining = _pos - index; 162if (_pos > (_chars.Length - count)) 167int remaining = _pos - index; 176int pos = _pos; 196int pos = _pos; 211int pos = _pos; 223if (_pos > _chars.Length - count) 228Span<char> dst = _chars.Slice(_pos, count); 239int pos = _pos; 245Span<char> dst = _chars.Slice(_pos, length); 256int pos = _pos; 262value.CopyTo(_chars[_pos..]); 269int origPos = _pos; 289/// <see cref="_pos"/> whichever is greater. 298Debug.Assert(_pos > _chars.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed."); 305(uint)(_pos + additionalCapacityBeyondPos), 312_chars[.._pos].CopyTo(poolArray);