End() private method

private End ( ) : int
return int
Beispiel #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);
        }
 public void EndInflate()
 {
     istate.End();
     istate = null;
 }