Zlib.InflateManager.End C# (CSharp) Метод

End() приватный Метод

private End ( ) : int
Результат int
        internal int End()
        {
            if (this.blocks != null)
            {
                this.blocks.Free();
            }

            this.blocks = null;
            return ZlibConstants.Zok;
        }

Usage 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>
        public int EndInflate()
        {
            if (istate == null)
            {
                throw new ZlibException("No Inflate State!");
            }
            int ret = istate.End();

            istate = null;
            return(ret);
        }