3 writes to _state
System.IO.Compression (3)
System\IO\Compression\DeflateEncoder.cs (3)
77_state = ZLibNative.ZLibStreamHandle.CreateForDeflate( 97_state = ZLibNative.ZLibStreamHandle.CreateForDeflate( 129_state = null;
22 references to _state
System.IO.Compression (22)
System\IO\Compression\DeflateEncoder.cs (22)
128_state?.Dispose(); 197Debug.Assert(_state is not null); 224_state.NextIn = (IntPtr)inputPtr; 225_state.AvailIn = (uint)source.Length; 226_state.NextOut = (IntPtr)outputPtr; 227_state.AvailOut = (uint)destination.Length; 229ZLibNative.ErrorCode errorCode = _state.Deflate(flushCode); 231bytesConsumed = source.Length - (int)_state.AvailIn; 232bytesWritten = destination.Length - (int)_state.AvailOut; 237ZLibNative.ErrorCode.Ok => _state.AvailIn == 0 241ZLibNative.ErrorCode.BufError => _state.AvailOut == 0 244_ => throw new ZLibException(SR.ZLibErrorUnexpected, "deflate", (int)errorCode, _state.GetErrorMessage()) 267Debug.Assert(_state is not null); 280_state.NextIn = IntPtr.Zero; 281_state.AvailIn = 0; 282_state.NextOut = (IntPtr)outputPtr; 283_state.AvailOut = (uint)destination.Length; 285ZLibNative.ErrorCode errorCode = _state.Deflate(ZLibNative.FlushCode.SyncFlush); 287bytesWritten = destination.Length - (int)_state.AvailOut; 291ZLibNative.ErrorCode.Ok => _state.AvailOut == 0 295ZLibNative.ErrorCode.BufError => _state.AvailOut == 0 298_ => throw new ZLibException(SR.ZLibErrorUnexpected, "deflate", (int)errorCode, _state.GetErrorMessage())