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)
28if (_state.IsInvalid) 43if (_state.IsInvalid) 50if (_state == null) 60_state?.Dispose(); 72if (_state == null || _state.IsInvalid || _state.IsClosed) 75Debug.Assert(_state != null && !_state.IsInvalid && !_state.IsClosed); 81if (Interop.Brotli.BrotliEncoderSetParameter(_state, BrotliEncoderParameter.Quality, (uint)quality) == Interop.BOOL.FALSE) 90if (_state == null || _state.IsInvalid || _state.IsClosed) 93Debug.Assert(_state != null && !_state.IsInvalid && !_state.IsClosed); 99if (Interop.Brotli.BrotliEncoderSetParameter(_state, BrotliEncoderParameter.LGWin, (uint)window) == Interop.BOOL.FALSE) 150Debug.Assert(_state != null); 166if (Interop.Brotli.BrotliEncoderCompressStream(_state, operation, ref availableInput, &inBytes, ref availableOutput, &outBytes, out _) == Interop.BOOL.FALSE) 178if ((int)availableOutput == destination.Length && Interop.Brotli.BrotliEncoderHasMoreOutput(_state) == Interop.BOOL.FALSE && availableInput == 0)
System\IO\Compression\enc\BrotliStream.Compress.cs (4)
189if (_encoder._state == null || _encoder._state.IsClosed) 230if (_encoder._state == null || _encoder._state.IsClosed)