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(); 192Debug.Assert(_state is not null); 219_state.NextIn = (IntPtr)inputPtr; 220_state.AvailIn = (uint)source.Length; 221_state.NextOut = (IntPtr)outputPtr; 222_state.AvailOut = (uint)destination.Length; 224ZLibNative.ErrorCode errorCode = _state.Deflate(flushCode); 226bytesConsumed = source.Length - (int)_state.AvailIn; 227bytesWritten = destination.Length - (int)_state.AvailOut; 232ZLibNative.ErrorCode.Ok => _state.AvailIn == 0 236ZLibNative.ErrorCode.BufError => _state.AvailOut == 0 239_ => throw new ZLibException(SR.ZLibErrorUnexpected, "deflate", (int)errorCode, _state.GetErrorMessage()) 262Debug.Assert(_state is not null); 275_state.NextIn = IntPtr.Zero; 276_state.AvailIn = 0; 277_state.NextOut = (IntPtr)outputPtr; 278_state.AvailOut = (uint)destination.Length; 280ZLibNative.ErrorCode errorCode = _state.Deflate(ZLibNative.FlushCode.SyncFlush); 282bytesWritten = destination.Length - (int)_state.AvailOut; 286ZLibNative.ErrorCode.Ok => _state.AvailOut == 0 290ZLibNative.ErrorCode.BufError => _state.AvailOut == 0 293_ => throw new ZLibException(SR.ZLibErrorUnexpected, "deflate", (int)errorCode, _state.GetErrorMessage())