4 writes to _stream
System.IO.Compression (4)
System\IO\Compression\DeflateZLib\DeflateStream.cs (4)
89
_stream
= stream;
125
_stream
= stream;
760
_stream
= null!;
807
_stream
= null!;
35 references to _stream
System.IO.Compression (35)
System\IO\Compression\DeflateZLib\DeflateStream.cs (35)
116
[MemberNotNull(nameof(
_stream
))]
167
return
_stream
;
175
if (
_stream
== null)
180
return (_mode == CompressionMode.Decompress &&
_stream
.CanRead);
188
if (
_stream
== null)
193
return (_mode == CompressionMode.Compress &&
_stream
.CanWrite);
247
await
_stream
.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, compressedBytes), cancellationToken).ConfigureAwait(false);
253
await
_stream
.FlushAsync(cancellationToken).ConfigureAwait(false);
327
int n =
_stream
.Read(_buffer, 0, _buffer.Length);
335
if (_inflater.HasUnconfirmedGZipProbe &&
_stream
.CanSeek)
373
if (bytesRead == 0 && InflatorIsFinished && !_decompressionFinished &&
_stream
.CanSeek)
375
TryRewindStream(
_stream
);
394
ObjectDisposedException.ThrowIf(
_stream
is null, this);
489
int n = await
_stream
.ReadAsync(new Memory<byte>(_buffer, 0, _buffer.Length), cancellationToken).ConfigureAwait(false);
497
if (_inflater.HasUnconfirmedGZipProbe &&
_stream
.CanSeek)
534
if (bytesRead == 0 && InflatorIsFinished && !_decompressionFinished &&
_stream
.CanSeek)
536
TryRewindStream(
_stream
);
628
_stream
.Write(_buffer, 0, compressedBytes);
648
_stream
.Write(_buffer, 0, compressedBytes);
654
_stream
.Flush();
663
if (
_stream
== null)
681
_stream
.Write(_buffer, 0, compressedBytes);
689
if (
_stream
== null)
707
await
_stream
.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, compressedBytes)).ConfigureAwait(false);
755
_stream
?.Dispose();
806
Stream stream =
_stream
;
923
await
_stream
.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, compressedBytes), cancellationToken).ConfigureAwait(false);
1012
await _deflateStream.
_stream
.CopyToAsync(this, _arrayPoolBuffer.Length, _cancellationToken).ConfigureAwait(false);
1017
!(_deflateStream._inflater.HasUnconfirmedGZipProbe && _deflateStream.
_stream
.CanSeek))
1025
if ((_deflateStream._inflater.Finished() || _deflateStream._inflater.HasUnconfirmedGZipProbe) && !_deflateStream._decompressionFinished && _deflateStream.
_stream
.CanSeek)
1031
_deflateStream.TryRewindStream(_deflateStream.
_stream
);
1075
_deflateStream.
_stream
.CopyTo(this, _arrayPoolBuffer.Length);
1080
!(_deflateStream._inflater.HasUnconfirmedGZipProbe && _deflateStream.
_stream
.CanSeek))
1088
if ((_deflateStream._inflater.Finished() || _deflateStream._inflater.HasUnconfirmedGZipProbe) && !_deflateStream._decompressionFinished && _deflateStream.
_stream
.CanSeek)
1094
_deflateStream.TryRewindStream(_deflateStream.
_stream
);