11 writes to _pos
Microsoft.Extensions.DataIngestion (11)
Chunkers\ValueStringBuilder.cs (11)
28_pos = 0; 35_pos = 0; 45_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;
24 references to _pos
Microsoft.Extensions.DataIngestion (24)
Chunkers\ValueStringBuilder.cs (24)
40get => _pos; 58Grow(capacity - _pos); 67EnsureCapacity(_pos + 1); 68_chars[_pos] = '\0'; 86Debug.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);