10 writes to _bufferCount
Microsoft.AspNetCore.WebUtilities (10)
BufferedReadStream.cs (10)
112_bufferCount -= innerOffset; 118_bufferCount = 0; 126_bufferCount = 0; 212_bufferCount -= toCopy; 234_bufferCount -= toCopy; 253_bufferCount = _inner.Read(_buffer, 0, _buffer.Length); 270_bufferCount = await _inner.ReadAsync(_buffer.AsMemory(), cancellationToken); 297_bufferCount += read; 330_bufferCount += read; 393_bufferCount--;
23 references to _bufferCount
Microsoft.AspNetCore.WebUtilities (23)
BufferedReadStream.cs (23)
55get { return new ArraySegment<byte>(_buffer, _bufferOffset, _bufferCount); } 61get { return _inner.CanRead || _bufferCount > 0; } 91get { return _inner.Position - _bufferCount; } 108if (innerOffset <= _bufferCount) 207if (_bufferCount > 0) 209int toCopy = Math.Min(_bufferCount, count); 229if (_bufferCount > 0) 231int toCopy = Math.Min(_bufferCount, buffer.Length); 247if (_bufferCount > 0) 254return _bufferCount > 0; 264if (_bufferCount > 0) 271return _bufferCount > 0; 285while (_bufferCount < minCount) 290if (_bufferCount > 0) 292Buffer.BlockCopy(_buffer, _bufferOffset, _buffer, 0, _bufferCount); 296int read = _inner.Read(_buffer, _bufferOffset + _bufferCount, _buffer.Length - _bufferCount - _bufferOffset); 318while (_bufferCount < minCount) 323if (_bufferCount > 0) 325Buffer.BlockCopy(_buffer, _bufferOffset, _buffer, 0, _bufferCount); 329int read = await _inner.ReadAsync(_buffer.AsMemory(_bufferOffset + _bufferCount, _buffer.Length - _bufferCount - _bufferOffset), cancellationToken); 389while (_bufferCount > 0)