亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? deflate.c

?? p2p技術C源代碼.rar
?? C
?? 第 1 頁 / 共 4 頁
字號:
#endif
            more += wsize;
        }
        if (s->strm->avail_in == 0) return;

        /* If there was no sliding:
         *    strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
         *    more == window_size - lookahead - strstart
         * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
         * => more >= window_size - 2*WSIZE + 2
         * In the BIG_MEM or MMAP case (not yet supported),
         *   window_size == input_size + MIN_LOOKAHEAD  &&
         *   strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
         * Otherwise, window_size == 2*WSIZE so more >= 2.
         * If there was sliding, more >= WSIZE. So in all cases, more >= 2.
         */
        Assert(more >= 2, "more < 2");

        n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
        s->lookahead += n;

        /* Initialize the hash value now that we have some input: */
        if (s->lookahead >= MIN_MATCH) {
            s->ins_h = s->window[s->strstart];
            UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]);
#if MIN_MATCH != 3
            Call UPDATE_HASH() MIN_MATCH-3 more times
#endif
        }
        /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
         * but this is not important since only literal bytes will be emitted.
         */

    } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
}

/* ===========================================================================
 * Flush the current block, with given end-of-file flag.
 * IN assertion: strstart is set to the end of the current match.
 */
#define FLUSH_BLOCK_ONLY(s, eof) { \
   _tr_flush_block(s, (s->block_start >= 0L ? \
                   (charf *)&s->window[(unsigned)s->block_start] : \
                   (charf *)Z_NULL), \
		(ulg)((long)s->strstart - s->block_start), \
		(eof)); \
   s->block_start = s->strstart; \
   flush_pending(s->strm); \
   Tracev((stderr,"[FLUSH]")); \
}

/* Same but force premature exit if necessary. */
#define FLUSH_BLOCK(s, eof) { \
   FLUSH_BLOCK_ONLY(s, eof); \
   if (s->strm->avail_out == 0) return (eof) ? finish_started : need_more; \
}

/* ===========================================================================
 * Copy without compression as much as possible from the input stream, return
 * the current block state.
 * This function does not insert new strings in the dictionary since
 * uncompressible data is probably not useful. This function is used
 * only for the level=0 compression option.
 * NOTE: this function should be optimized to avoid extra copying from
 * window to pending_buf.
 */
local block_state deflate_stored(s, flush)
    deflate_state *s;
    int flush;
{
    /* Stored blocks are limited to 0xffff bytes, pending_buf is limited
     * to pending_buf_size, and each stored block has a 5 byte header:
     */
    ulg max_block_size = 0xffff;
    ulg max_start;

    if (max_block_size > s->pending_buf_size - 5) {
        max_block_size = s->pending_buf_size - 5;
    }

    /* Copy as much as possible from input to output: */
    for (;;) {
        /* Fill the window as much as possible: */
        if (s->lookahead <= 1) {

            Assert(s->strstart < s->w_size+MAX_DIST(s) ||
		   s->block_start >= (long)s->w_size, "slide too late");

            fill_window(s);
            if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;

            if (s->lookahead == 0) break; /* flush the current block */
        }
	Assert(s->block_start >= 0L, "block gone");

	s->strstart += s->lookahead;
	s->lookahead = 0;

	/* Emit a stored block if pending_buf will be full: */
 	max_start = s->block_start + max_block_size;
        if (s->strstart == 0 || (ulg)s->strstart >= max_start) {
	    /* strstart == 0 is possible when wraparound on 16-bit machine */
	    s->lookahead = (uInt)(s->strstart - max_start);
	    s->strstart = (uInt)max_start;
            FLUSH_BLOCK(s, 0);
	}
	/* Flush if we may have to slide, otherwise block_start may become
         * negative and the data will be gone:
         */
        if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) {
            FLUSH_BLOCK(s, 0);
	}
    }
    FLUSH_BLOCK(s, flush == Z_FINISH);
    return flush == Z_FINISH ? finish_done : block_done;
}

/* ===========================================================================
 * Compress as much as possible from the input stream, return the current
 * block state.
 * This function does not perform lazy evaluation of matches and inserts
 * new strings in the dictionary only for unmatched strings or for short
 * matches. It is used only for the fast compression options.
 */
local block_state deflate_fast(s, flush)
    deflate_state *s;
    int flush;
{
    IPos hash_head = NIL; /* head of the hash chain */
    int bflush;           /* set if current block must be flushed */

    for (;;) {
        /* Make sure that we always have enough lookahead, except
         * at the end of the input file. We need MAX_MATCH bytes
         * for the next match, plus MIN_MATCH bytes to insert the
         * string following the next match.
         */
        if (s->lookahead < MIN_LOOKAHEAD) {
            fill_window(s);
            if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
	        return need_more;
	    }
            if (s->lookahead == 0) break; /* flush the current block */
        }

        /* Insert the string window[strstart .. strstart+2] in the
         * dictionary, and set hash_head to the head of the hash chain:
         */
        if (s->lookahead >= MIN_MATCH) {
            INSERT_STRING(s, s->strstart, hash_head);
        }

        /* Find the longest match, discarding those <= prev_length.
         * At this point we have always match_length < MIN_MATCH
         */
        if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) {
            /* To simplify the code, we prevent matches with the string
             * of window index 0 (in particular we have to avoid a match
             * of the string with itself at the start of the input file).
             */
            if (s->strategy != Z_HUFFMAN_ONLY) {
                s->match_length = longest_match (s, hash_head);
            }
            /* longest_match() sets match_start */
        }
        if (s->match_length >= MIN_MATCH) {
            check_match(s, s->strstart, s->match_start, s->match_length);

            _tr_tally_dist(s, s->strstart - s->match_start,
                           s->match_length - MIN_MATCH, bflush);

            s->lookahead -= s->match_length;

            /* Insert new strings in the hash table only if the match length
             * is not too large. This saves time but degrades compression.
             */
#ifndef FASTEST
            if (s->match_length <= s->max_insert_length &&
                s->lookahead >= MIN_MATCH) {
                s->match_length--; /* string at strstart already in hash table */
                do {
                    s->strstart++;
                    INSERT_STRING(s, s->strstart, hash_head);
                    /* strstart never exceeds WSIZE-MAX_MATCH, so there are
                     * always MIN_MATCH bytes ahead.
                     */
                } while (--s->match_length != 0);
                s->strstart++; 
            } else
#endif
	    {
                s->strstart += s->match_length;
                s->match_length = 0;
                s->ins_h = s->window[s->strstart];
                UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]);
#if MIN_MATCH != 3
                Call UPDATE_HASH() MIN_MATCH-3 more times
#endif
                /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
                 * matter since it will be recomputed at next deflate call.
                 */
            }
        } else {
            /* No match, output a literal byte */
            Tracevv((stderr,"%c", s->window[s->strstart]));
            _tr_tally_lit (s, s->window[s->strstart], bflush);
            s->lookahead--;
            s->strstart++; 
        }
        if (bflush) FLUSH_BLOCK(s, 0);
    }
    FLUSH_BLOCK(s, flush == Z_FINISH);
    return flush == Z_FINISH ? finish_done : block_done;
}

/* ===========================================================================
 * Same as above, but achieves better compression. We use a lazy
 * evaluation for matches: a match is finally adopted only if there is
 * no better match at the next window position.
 */
local block_state deflate_slow(s, flush)
    deflate_state *s;
    int flush;
{
    IPos hash_head = NIL;    /* head of hash chain */
    int bflush;              /* set if current block must be flushed */

    /* Process the input block. */
    for (;;) {
        /* Make sure that we always have enough lookahead, except
         * at the end of the input file. We need MAX_MATCH bytes
         * for the next match, plus MIN_MATCH bytes to insert the
         * string following the next match.
         */
        if (s->lookahead < MIN_LOOKAHEAD) {
            fill_window(s);
            if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
	        return need_more;
	    }
            if (s->lookahead == 0) break; /* flush the current block */
        }

        /* Insert the string window[strstart .. strstart+2] in the
         * dictionary, and set hash_head to the head of the hash chain:
         */
        if (s->lookahead >= MIN_MATCH) {
            INSERT_STRING(s, s->strstart, hash_head);
        }

        /* Find the longest match, discarding those <= prev_length.
         */
        s->prev_length = s->match_length, s->prev_match = s->match_start;
        s->match_length = MIN_MATCH-1;

        if (hash_head != NIL && s->prev_length < s->max_lazy_match &&
            s->strstart - hash_head <= MAX_DIST(s)) {
            /* To simplify the code, we prevent matches with the string
             * of window index 0 (in particular we have to avoid a match
             * of the string with itself at the start of the input file).
             */
            if (s->strategy != Z_HUFFMAN_ONLY) {
                s->match_length = longest_match (s, hash_head);
            }
            /* longest_match() sets match_start */

            if (s->match_length <= 5 && (s->strategy == Z_FILTERED ||
                 (s->match_length == MIN_MATCH &&
                  s->strstart - s->match_start > TOO_FAR))) {

                /* If prev_match is also MIN_MATCH, match_start is garbage
                 * but we will ignore the current match anyway.
                 */
                s->match_length = MIN_MATCH-1;
            }
        }
        /* If there was a match at the previous step and the current
         * match is not better, output the previous match:
         */
        if (s->prev_length >= MIN_MATCH && s->match_length <= s->prev_length) {
            uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
            /* Do not insert strings in hash table beyond this. */

            check_match(s, s->strstart-1, s->prev_match, s->prev_length);

            _tr_tally_dist(s, s->strstart -1 - s->prev_match,
			   s->prev_length - MIN_MATCH, bflush);

            /* Insert in hash table all strings up to the end of the match.
             * strstart-1 and strstart are already inserted. If there is not
             * enough lookahead, the last two strings are not inserted in
             * the hash table.
             */
            s->lookahead -= s->prev_length-1;
            s->prev_length -= 2;
            do {
                if (++s->strstart <= max_insert) {
                    INSERT_STRING(s, s->strstart, hash_head);
                }
            } while (--s->prev_length != 0);
            s->match_available = 0;
            s->match_length = MIN_MATCH-1;
            s->strstart++;

            if (bflush) FLUSH_BLOCK(s, 0);

        } else if (s->match_available) {
            /* If there was no match at the previous position, output a
             * single literal. If there was a match but the current match
             * is longer, truncate the previous match to a single literal.
             */
            Tracevv((stderr,"%c", s->window[s->strstart-1]));
	    _tr_tally_lit(s, s->window[s->strstart-1], bflush);
	    if (bflush) {
                FLUSH_BLOCK_ONLY(s, 0);
            }
            s->strstart++;
            s->lookahead--;
            if (s->strm->avail_out == 0) return need_more;
        } else {
            /* There is no previous match to compare with, wait for
             * the next step to decide.
             */
            s->match_available = 1;
            s->strstart++;
            s->lookahead--;
        }
    }
    Assert (flush != Z_NO_FLUSH, "no flush?");
    if (s->match_available) {
        Tracevv((stderr,"%c", s->window[s->strstart-1]));
        _tr_tally_lit(s, s->window[s->strstart-1], bflush);
        s->match_available = 0;
    }
    FLUSH_BLOCK(s, flush == Z_FINISH);
    return flush == Z_FINISH ? finish_done : block_done;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩高清在线一区| 欧美日韩另类国产亚洲欧美一级| 日韩精品一区二区在线| 麻豆极品一区二区三区| 日韩精品影音先锋| 高清在线不卡av| 欧美国产精品专区| 色婷婷综合久久久久中文| 夜夜操天天操亚洲| 日韩亚洲欧美中文三级| 国产综合色产在线精品| 中文字幕一区在线| 欧美视频自拍偷拍| 经典一区二区三区| 中文字幕一区二区三区在线不卡 | 国产欧美精品一区二区色综合| 国产精品一区二区男女羞羞无遮挡| 亚洲国产成人自拍| 在线一区二区三区四区| 另类调教123区| 综合婷婷亚洲小说| 日韩欧美123| 99国产精品国产精品久久| 亚洲v日本v欧美v久久精品| 亚洲精品在线观看网站| 色婷婷综合久久久中文字幕| 日本不卡一二三| 中文字幕一区二区日韩精品绯色| 欧洲一区在线观看| 国产精品系列在线播放| 亚洲成a人v欧美综合天堂 | 国产精品亚洲а∨天堂免在线| 狠狠色综合播放一区二区| 国产精品人成在线观看免费| 欧美视频在线一区| 成人国产精品视频| 蜜臀久久99精品久久久久久9| 国产精品全国免费观看高清 | 日韩精品一区二区在线观看| 99精品视频一区二区三区| 日本女优在线视频一区二区| 中文字幕一区二区三区不卡| 欧美精品一区二区三区视频| 在线观看中文字幕不卡| 高清国产一区二区| 久久国产精品第一页| 亚洲成在人线免费| 综合久久久久综合| 久久久久久麻豆| 日韩午夜在线影院| 欧美在线一二三四区| eeuss鲁片一区二区三区在线看| 日本aⅴ免费视频一区二区三区 | 国产福利一区二区三区视频在线| 亚洲国产你懂的| 国产精品久久久久久妇女6080 | 久久久午夜电影| 91精品国产综合久久婷婷香蕉 | 大桥未久av一区二区三区中文| 日韩av电影天堂| 亚洲理论在线观看| 中文字幕一区二区三区在线不卡| 精品sm捆绑视频| 日韩亚洲欧美在线| 欧美剧在线免费观看网站| 欧洲精品中文字幕| 色94色欧美sute亚洲13| 91丨九色丨蝌蚪富婆spa| 成人免费毛片aaaaa**| 国产一区二区三区免费看| 精品一区二区免费| 韩国一区二区三区| 国内精品写真在线观看| 蜜臂av日日欢夜夜爽一区| 免费一级欧美片在线观看| 日韩国产欧美在线视频| 亚州成人在线电影| 日本欧美肥老太交大片| 青娱乐精品在线视频| 老司机精品视频导航| 极品少妇xxxx精品少妇偷拍 | 欧美精品一区二区久久久| 日韩欧美一级二级| 久久亚洲捆绑美女| 国产日产欧产精品推荐色 | 色婷婷综合久久| 在线精品视频一区二区三四| 18欧美亚洲精品| 亚洲乱码中文字幕综合| 亚洲与欧洲av电影| 亚洲一区二区三区四区五区中文| 亚洲国产一区在线观看| 日本少妇一区二区| 国产一区 二区| 成人综合在线视频| 91在线云播放| 欧美三级日本三级少妇99| 9191国产精品| 久久久久免费观看| 亚洲品质自拍视频网站| 五月婷婷久久综合| 国产精品香蕉一区二区三区| av一本久道久久综合久久鬼色| 色狠狠一区二区三区香蕉| 在线成人免费视频| 国产片一区二区三区| 亚洲精品视频一区二区| 麻豆视频一区二区| 不卡影院免费观看| 欧美一区二区在线看| 国产亚洲成年网址在线观看| 亚洲精品v日韩精品| 免费高清在线一区| av在线一区二区三区| 在线播放日韩导航| 中文字幕高清一区| 日本欧美在线观看| av一区二区三区四区| 欧美一级精品大片| 综合色中文字幕| 狠狠色狠狠色综合日日91app| 99麻豆久久久国产精品免费优播| 亚洲精品高清在线观看| 蜜臀av一区二区在线免费观看| 成人午夜看片网址| 欧美一二三区在线观看| 中文字幕在线一区免费| 麻豆精品久久久| 欧美日韩一区精品| 国产精品视频在线看| 视频在线观看91| 91香蕉视频黄| 国产欧美日韩另类视频免费观看| 亚洲国产精品人人做人人爽| 成人综合婷婷国产精品久久| 欧美久久久久中文字幕| 亚洲欧美在线视频| 国产精品99精品久久免费| 91精品国产免费| 亚洲一区二区中文在线| 99精品视频在线免费观看| 久久久91精品国产一区二区三区| 丝袜亚洲精品中文字幕一区| 91在线视频播放地址| 国产日产亚洲精品系列| 黄页视频在线91| 日韩视频免费直播| 日韩电影在线观看一区| 91麻豆精品在线观看| 国产精品视频一二| 国产大陆亚洲精品国产| 日韩精品一区二区在线观看| 秋霞成人午夜伦在线观看| 欧美日韩久久不卡| 夜夜揉揉日日人人青青一国产精品| 波多野结衣在线一区| 国产欧美一区二区三区网站| 韩国av一区二区三区在线观看| 日韩一区二区中文字幕| 日韩高清不卡一区二区| 欧美猛男男办公室激情| 亚洲国产精品久久人人爱| 一本一道综合狠狠老| 亚洲女性喷水在线观看一区| 91免费在线播放| 亚洲激情欧美激情| 欧美午夜视频网站| 五月婷婷综合激情| 337p亚洲精品色噜噜噜| 污片在线观看一区二区| 在线不卡欧美精品一区二区三区| 亚洲成人免费av| 欧美一区二区播放| 青青草97国产精品免费观看无弹窗版 | 国产一区二区三区在线观看免费| 精品嫩草影院久久| 国产精品一品视频| 欧美激情一区二区三区蜜桃视频| 国产成人精品影院| 亚洲三级理论片| 欧美日韩日本视频| 久久国产尿小便嘘嘘尿| 国产亚洲综合性久久久影院| 成人性生交大合| 一个色在线综合| 日韩一区二区三区精品视频| 国产在线看一区| 中文字幕一区二区三区四区不卡| 色噜噜偷拍精品综合在线| 日韩精品91亚洲二区在线观看| 日韩美女视频在线| 成人午夜av在线| 亚洲不卡一区二区三区| 亚洲精品一区二区精华| 99久久99久久久精品齐齐| 午夜欧美一区二区三区在线播放| 日韩欧美二区三区| 99久久精品免费看国产| 日韩精品欧美成人高清一区二区| 久久久久久久国产精品影院|