1 write to _state
System.IO.Compression.Brotli (1)
System\IO\Compression\dec\BrotliDecoder.cs (1)
38
_state
= Interop.Brotli.BrotliDecoderCreateInstance(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
8 references to _state
System.IO.Compression.Brotli (8)
System\IO\Compression\dec\BrotliDecoder.cs (8)
31
Debug.Assert(
_state
is null, "The window size must be configured before the native decoder is created.");
39
if (
_state
.IsInvalid)
45
Interop.Brotli.BrotliDecoderSetParameter(
_state
, BrotliDecoderParameter.LargeWindow, 1) == Interop.BOOL.FALSE)
54
if (
_state
== null)
62
_state
?.Dispose();
85
Debug.Assert(
_state
!= null);
111
if (Interop.Brotli.BrotliDecoderIsFinished(
_state
) != Interop.BOOL.FALSE)
125
int brotliResult = Interop.Brotli.BrotliDecoderDecompressStream(
_state
, ref availableInput, &inBytes, ref availableOutput, &outBytes, out _);