2 writes to _state
System.IO.Compression (2)
System\IO\Compression\DeflateDecoder.cs (2)
30
_state
= ZLibNative.ZLibStreamHandle.CreateForInflate(windowBits);
40
_state
= null;
10 references to _state
System.IO.Compression (10)
System\IO\Compression\DeflateDecoder.cs (10)
39
_state
?.Dispose();
59
Debug.Assert(
_state
is not null);
79
_state
.NextIn = (IntPtr)inputPtr;
80
_state
.AvailIn = (uint)source.Length;
81
_state
.NextOut = (IntPtr)outputPtr;
82
_state
.AvailOut = (uint)destination.Length;
84
ZLibNative.ErrorCode errorCode =
_state
.Inflate(ZLibNative.FlushCode.NoFlush);
86
bytesConsumed = source.Length - (int)
_state
.AvailIn;
87
bytesWritten = destination.Length - (int)
_state
.AvailOut;
91
ZLibNative.ErrorCode.Ok or ZLibNative.ErrorCode.BufError =>
_state
.AvailOut == 0