NetWrok.HTTP.Zlib.DeflateManager.Reset C# (CSharp) Method

Reset() private method

private Reset ( ZlibCodec strm ) : int
strm ZlibCodec
return int
        internal int Reset(ZlibCodec strm)
        {
            strm.TotalBytesIn = strm.TotalBytesOut = 0;
            strm.Message = null;
            //strm.data_type = Z_UNKNOWN;

            pendingCount = 0;
            nextPending = 0;

            Rfc1950BytesEmitted = false;

            status = (WantRfc1950HeaderBytes) ? INIT_STATE : BUSY_STATE;
            strm._Adler32 = Adler.Adler32 (0, null, 0, 0);

            last_flush = ZlibConstants.Z_NO_FLUSH;

            _InitializeTreeData ();
            _InitializeLazyMatch ();
            return ZlibConstants.Z_OK;
        }