4 writes to _index
Microsoft.Extensions.Logging.Console (4)
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (4)
43_index = 0; 109_index = 0; 132_index = 0; 142_index += count;
17 references to _index
Microsoft.Extensions.Logging.Console (17)
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (17)
56Debug.Assert(_index <= _rentedBuffer.Length); 57return _rentedBuffer.AsMemory(0, _index); 66return _index; 84return _rentedBuffer.Length - _index; 106Debug.Assert(_index <= _rentedBuffer.Length); 108_rentedBuffer.AsSpan(0, _index).Clear(); 141Debug.Assert(_index <= _rentedBuffer.Length - count); 148return _rentedBuffer.AsMemory(_index); 154return _rentedBuffer.AsSpan(_index); 176int availableSpace = currentLength - _index; 180if (_index >= MaximumBufferSize / 2) 204Debug.Assert(oldBuffer.Length >= _index); 205Debug.Assert(_rentedBuffer.Length >= _index); 207Span<byte> oldBufferAsSpan = oldBuffer.AsSpan(0, _index); 213Debug.Assert(_rentedBuffer.Length - _index > 0); 214Debug.Assert(_rentedBuffer.Length - _index >= sizeHint); 232public override long UnflushedBytes => _index;