2 writes to _state
System.IO.Compression.Brotli (2)
System\IO\Compression\enc\BrotliEncoder.cs (2)
27
_state
= Interop.Brotli.BrotliEncoderCreateInstance(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
42
_state
= Interop.Brotli.BrotliEncoderCreateInstance(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
25 references to _state
System.IO.Compression.Brotli (25)
System\IO\Compression\enc\BrotliEncoder.cs (21)
28
if (
_state
.IsInvalid)
43
if (
_state
.IsInvalid)
50
if (
_state
== null)
60
_state
?.Dispose();
72
if (
_state
== null ||
_state
.IsInvalid ||
_state
.IsClosed)
75
Debug.Assert(
_state
!= null && !
_state
.IsInvalid && !
_state
.IsClosed);
81
if (Interop.Brotli.BrotliEncoderSetParameter(
_state
, BrotliEncoderParameter.Quality, (uint)quality) == Interop.BOOL.FALSE)
90
if (
_state
== null ||
_state
.IsInvalid ||
_state
.IsClosed)
93
Debug.Assert(
_state
!= null && !
_state
.IsInvalid && !
_state
.IsClosed);
99
if (Interop.Brotli.BrotliEncoderSetParameter(
_state
, BrotliEncoderParameter.LGWin, (uint)window) == Interop.BOOL.FALSE)
145
Debug.Assert(
_state
!= null);
161
if (Interop.Brotli.BrotliEncoderCompressStream(
_state
, operation, ref availableInput, &inBytes, ref availableOutput, &outBytes, out _) == Interop.BOOL.FALSE)
173
if ((int)availableOutput == destination.Length && Interop.Brotli.BrotliEncoderHasMoreOutput(
_state
) == Interop.BOOL.FALSE && availableInput == 0)
System\IO\Compression\enc\BrotliStream.Compress.cs (4)
189
if (_encoder.
_state
== null || _encoder.
_state
.IsClosed)
230
if (_encoder.
_state
== null || _encoder.
_state
.IsClosed)