12 writes to _pos
System.Private.Xml (12)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
12_pos += charsWritten;
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (11)
24_pos = 0; 31_pos = 0; 41_pos = value; 115_pos += count; 139_pos += count; 150_pos = pos + 1; 170_pos = pos + 1; 191_pos += s.Length; 206_pos += count; 218_pos += value.Length; 230_pos = origPos + length;
25 references to _pos
System.Private.Xml (25)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
10if (value.TryFormat(_chars.Slice(_pos), out int charsWritten, format, provider))
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (24)
36get => _pos; 54Grow(capacity - _pos); 63EnsureCapacity(_pos + 1); 64_chars[_pos] = '\0'; 82Debug.Assert(index < _pos); 93string s = _chars.Slice(0, _pos).ToString(); 101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 107if (_pos > _chars.Length - count) 112int remaining = _pos - index; 127if (_pos > (_chars.Length - count)) 132int remaining = _pos - index; 145int pos = _pos; 166int pos = _pos; 180int pos = _pos; 196if (_pos > _chars.Length - count) 201Span<char> dst = _chars.Slice(_pos, count); 211int pos = _pos; 217value.CopyTo(_chars.Slice(_pos)); 224int origPos = _pos; 244/// <see cref="_pos"/> whichever is greater. 253Debug.Assert(_pos > _chars.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed."); 260(uint)(_pos + additionalCapacityBeyondPos), 267_chars.Slice(0, _pos).CopyTo(poolArray);