13 writes to _pos
System.Web.HttpUtility (13)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
12_pos += charsWritten;
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
23_pos = 0; 30_pos = 0; 40_pos = value; 144_pos += count; 168_pos += count; 179_pos = pos + 1; 199_pos = pos + 1; 220_pos += s.Length; 235_pos += count; 251_pos += length; 263_pos += value.Length; 275_pos = origPos + length;
28 references to _pos
System.Web.HttpUtility (28)
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 (27)
35get => _pos; 53Grow(capacity - _pos); 85Debug.Assert(index < _pos); 92string s = _chars.Slice(0, _pos).ToString(); 111return _chars.Slice(0, _pos); 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 120if (_chars.Slice(0, _pos).TryCopyTo(destination)) 122charsWritten = _pos; 136if (_pos > _chars.Length - count) 141int remaining = _pos - index; 156if (_pos > (_chars.Length - count)) 161int remaining = _pos - index; 174int pos = _pos; 195int pos = _pos; 209int pos = _pos; 225if (_pos > _chars.Length - count) 230Span<char> dst = _chars.Slice(_pos, count); 240int pos = _pos; 246Span<char> dst = _chars.Slice(_pos, length); 256int pos = _pos; 262value.CopyTo(_chars.Slice(_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.Slice(0, _pos).CopyTo(poolArray);