3 writes to _bufferCount
System.IO.Compression.Brotli (3)
System\IO\Compression\dec\BrotliStream.Decompress.cs (3)
75
_bufferCount
+= bytesRead;
162
_bufferCount
+= bytesRead;
196
_bufferCount
-= bytesConsumed;
10 references to _bufferCount
System.IO.Compression.Brotli (10)
System\IO\Compression\dec\BrotliStream.Decompress.cs (10)
66
int bytesRead = _stream.Read(_buffer,
_bufferCount
, _buffer.Length -
_bufferCount
);
77
if (
_bufferCount
> _buffer.Length)
154
int bytesRead = await _stream.ReadAsync(_buffer.AsMemory(
_bufferCount
), cancellationToken).ConfigureAwait(false);
165
if (
_bufferCount
> _buffer.Length)
187
OperationStatus lastResult = _decoder.Decompress(new ReadOnlySpan<byte>(_buffer, _bufferOffset,
_bufferCount
), destination, out int bytesConsumed, out bytesWritten);
216
if (
_bufferCount
!= 0)
225
(lastResult == OperationStatus.DestinationTooSmall && destination.IsEmpty &&
_bufferCount
== 0), $"{nameof(lastResult)} == {lastResult}, {nameof(destination.Length)} == {destination.Length}");
228
if (
_bufferCount
!= 0 && _bufferOffset != 0)
230
new ReadOnlySpan<byte>(_buffer, _bufferOffset,
_bufferCount
).CopyTo(_buffer);