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;
24 references to _state
System.IO.Compression (24)
System\IO\Compression\DeflateEncoder.cs (24)
128_state?.Dispose(); 178Debug.Assert(_state is not null); 205_state.NextIn = (IntPtr)inputPtr; 206_state.AvailIn = (uint)source.Length; 207_state.NextOut = (IntPtr)outputPtr; 208_state.AvailOut = (uint)destination.Length; 210ZLibNative.ErrorCode errorCode = _state.Deflate(flushCode); 212bytesConsumed = source.Length - (int)_state.AvailIn; 213bytesWritten = destination.Length - (int)_state.AvailOut; 218ZLibNative.ErrorCode.Ok => _state.AvailIn == 0 222ZLibNative.ErrorCode.BufError => _state.AvailOut == 0 225_ => throw new ZLibException(SR.ZLibErrorUnexpected, "deflate", (int)errorCode, _state.GetErrorMessage()) 248Debug.Assert(_state is not null); 261_state.NextIn = IntPtr.Zero; 262_state.AvailIn = 0; 263_state.NextOut = (IntPtr)outputPtr; 264_state.AvailOut = (uint)destination.Length; 266ZLibNative.ErrorCode errorCode = _state.Deflate(ZLibNative.FlushCode.SyncFlush); 268bytesWritten = destination.Length - (int)_state.AvailOut; 272ZLibNative.ErrorCode.Ok => _state.AvailOut == 0 276ZLibNative.ErrorCode.BufError => _state.AvailOut == 0 279_ => throw new ZLibException(SR.ZLibErrorUnexpected, "deflate", (int)errorCode, _state.GetErrorMessage()) 295Debug.Assert(_state is not null); 297_state.DeflateReset();