public ErrorCode InflateEnd() { EnsureNotDisposed(); EnsureState(State.InitializedForInflate); ErrorCode errC = ZLibInterop.InflateEnd(ref _zStream); _initializationState = State.Disposed; return(errC); }
public ErrorCode InflateReset(Int32 windowBits) { EnsureNotDisposed(); EnsureState(State.InitializedForInflate); ErrorCode errC = ZLibInterop.InflateEnd(ref _zStream); if (errC != ErrorCode.Ok) { _initializationState = State.Disposed; return(errC); } errC = ZLibInterop.InflateInit2_(ref _zStream, windowBits); _initializationState = State.InitializedForInflate; return(errC); }