System.IO.Compression.ZLibNative.ZLibStreamHandle.InflateReset C# (CSharp) Method

InflateReset() private method

private InflateReset ( int windowBits ) : ErrorCode
windowBits int
return ErrorCode
            public ErrorCode InflateReset(int windowBits)
            {
                EnsureNotDisposed();
                EnsureState(State.InitializedForInflate);

                ErrorCode errC = Interop.zlib.InflateEnd(ref _zStream);
                if (errC != ErrorCode.Ok)
                {
                    _initializationState = State.Disposed;
                    return errC;
                }

                errC = Interop.zlib.InflateInit2_(ref _zStream, windowBits);
                _initializationState = State.InitializedForInflate;

                return errC;
            }