5 writes to _count
System.Text.Json (5)
System\Text\Json\Serialization\ReadBufferState.cs (5)
47_maxCount = _count = _offset = 0; 87bufferState._count += bytesRead; 117_count += bytesRead; 132_count -= bytesConsumed; 179_count -= JsonConstants.Utf8Bom.Length;
14 references to _count
System.Text.Json (14)
System\Text\Json\Serialization\ReadBufferState.cs (14)
54public readonly ReadOnlySpan<byte> Bytes => _buffer.AsSpan(_offset, _count); 75bufferState._buffer.AsMemory(bufferState._count), 89while (bufferState._count < minBufferCount); 106_buffer.AsSpan(_count)); 119while (_count < _buffer.Length); 129Debug.Assert(bytesConsumed <= _count); 137if ((uint)_count > ((uint)_buffer.Length / 2)) 145Buffer.BlockCopy(oldBuffer, _offset + bytesConsumed, newBuffer, 0, _count); 147_maxCount = _count; 153else if (_count != 0) 156Buffer.BlockCopy(_buffer, _offset + bytesConsumed, _buffer, 0, _count); 165if (_count > _maxCount) 167_maxCount = _count; 176if (_buffer.AsSpan(0, _count).StartsWith(JsonConstants.Utf8Bom))