12 writes to _pos
System.Drawing.Common (12)
src\Common\src\ValueStringBuilder.cs (12)
22_pos = 0; 29_pos = 0; 39_pos = value; 142_pos += count; 162_pos += count; 172_pos = pos + 1; 192_pos = pos + 1; 209_pos += s.Length; 225_pos += count; 242_pos += length; 254_pos += value.Length; 266_pos = origPos + length;
27 references to _pos
System.Drawing.Common (27)
src\Common\src\ValueStringBuilder.cs (27)
34readonly get => _pos; 52Grow(capacity - _pos); 82Debug.Assert(index < _pos); 89string s = _chars[.._pos].ToString(); 109return _chars[.._pos]; 112public readonly ReadOnlySpan<char> AsSpan() => _chars[.._pos]; 113public readonly ReadOnlySpan<char> AsSpan(int start) => _chars[start.._pos]; 118if (_chars[.._pos].TryCopyTo(destination)) 120charsWritten = _pos; 134if (_pos > _chars.Length - count) 139int remaining = _pos - index; 154if (_pos > (_chars.Length - count)) 159int remaining = _pos - index; 168int pos = _pos; 188int pos = _pos; 202int pos = _pos; 214if (_pos > _chars.Length - count) 219Span<char> dst = _chars.Slice(_pos, count); 230int pos = _pos; 236Span<char> dst = _chars.Slice(_pos, length); 247int pos = _pos; 253value.CopyTo(_chars[_pos..]); 260int origPos = _pos; 280/// <see cref="_pos"/> whichever is greater. 289Debug.Assert(_pos > _chars.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed."); 296(uint)(_pos + additionalCapacityBeyondPos), 303_chars[.._pos].CopyTo(poolArray);