Ejemplo n.º 1
0
        /// <summary>
        /// All dynamically allocated data structures for this stream are freed. This function discards any unprocessed input and does not flush any pending output.
        /// </summary>
        /// <returns>
        /// inflateEnd returns <see cref="ZLibResultCode.Z_OK" /> if success, <see cref="ZLibResultCode.Z_STREAM_ERROR" /> if the stream state was inconsistent. In the error case, msg may be set but then points to a static string (which must not be deallocated).
        /// </returns>
        internal int inflateEnd()
        {
            next_in_index  = 0;
            next_out_index = 0;

            if (_istate == null)
            {
                return((int)ZLibResultCode.Z_STREAM_ERROR);
            }
            int ret = _istate.inflateEnd(this);

            _istate = null;
            return(ret);
        }