Example #1
0
        /// <summary>
        ///     Ends an inflation session.
        /// </summary>
        /// <remarks>
        ///     Call this after successively calling Inflate().  This will cause all buffers to be flushed.
        ///     After calling this you cannot call Inflate() without a intervening call to one of the
        ///     InitializeInflate() overloads.
        /// </remarks>
        /// <returns>Z_OK if everything goes well.</returns>
        internal int EndInflate()
        {
            if (istate == null)
            {
                throw new ZlibException("No Inflate State!");
            }
            var ret = istate.End();

            istate = null;
            return(ret);
        }