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

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

?? deflate.c

?? 一個本地database引擎,支持中文T_Sql查詢,兼容DELPHI標準數據庫控件
?? C
?? 第 1 頁 / 共 5 頁
字號:
     */
    s->ins_h = s->window[0];
    UPDATE_HASH(s, s->ins_h, s->window[1]);
    for (n = 0; n <= length - MIN_MATCH; n++) {
        INSERT_STRING(s, n, hash_head);
    }
    if (hash_head) hash_head = 0;  /* to make compiler happy */
    return Z_OK;
}

/* ========================================================================= */
int ZEXPORT deflateReset (strm)
    z_streamp strm;
{
    deflate_state *s;

    if (strm == Z_NULL || strm->state == Z_NULL ||
        strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) {
        return Z_STREAM_ERROR;
    }

    strm->total_in = strm->total_out = 0;
    strm->msg = Z_NULL; /* use zfree if we ever allocate msg dynamically */
    strm->data_type = Z_UNKNOWN;

    s = (deflate_state *)strm->state;
    s->pending = 0;
    s->pending_out = s->pending_buf;

    if (s->wrap < 0) {
        s->wrap = -s->wrap; /* was made negative by deflate(..., Z_FINISH); */
    }
    s->status = s->wrap ? INIT_STATE : BUSY_STATE;
    strm->adler =
#ifdef GZIP
        s->wrap == 2 ? crc32(0L, Z_NULL, 0) :
#endif
        adler32(0L, Z_NULL, 0);
    s->last_flush = Z_NO_FLUSH;

    _tr_init(s);
    lm_init(s);

    return Z_OK;
}

/* ========================================================================= */
int ZEXPORT deflateSetHeader (strm, head)
    z_streamp strm;
    gz_headerp head;
{
    if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
    if (strm->state->wrap != 2) return Z_STREAM_ERROR;
    strm->state->gzhead = head;
    return Z_OK;
}

/* ========================================================================= */
int ZEXPORT deflatePrime (strm, bits, value)
    z_streamp strm;
    int bits;
    int value;
{
    if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
    strm->state->bi_valid = bits;
    strm->state->bi_buf = (ush)(value & ((1 << bits) - 1));
    return Z_OK;
}

/* ========================================================================= */
int ZEXPORT deflateParams(strm, level, strategy)
    z_streamp strm;
    int level;
    int strategy;
{
    deflate_state *s;
    compress_func func;
    int err = Z_OK;

    if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
    s = strm->state;

#ifdef FASTEST
    if (level != 0) level = 1;
#else
    if (level == Z_DEFAULT_COMPRESSION) level = 6;
#endif
    if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
        return Z_STREAM_ERROR;
    }
    func = configuration_table[s->level].func;

    if (func != configuration_table[level].func && strm->total_in != 0) {
        /* Flush the last buffer: */
        err = deflate(strm, Z_PARTIAL_FLUSH);
    }
    if (s->level != level) {
        s->level = level;
        s->max_lazy_match   = configuration_table[level].max_lazy;
        s->good_match       = configuration_table[level].good_length;
        s->nice_match       = configuration_table[level].nice_length;
        s->max_chain_length = configuration_table[level].max_chain;
    }
    s->strategy = strategy;
    return err;
}

/* ========================================================================= */
int ZEXPORT deflateTune(strm, good_length, max_lazy, nice_length, max_chain)
    z_streamp strm;
    int good_length;
    int max_lazy;
    int nice_length;
    int max_chain;
{
    deflate_state *s;

    if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
    s = strm->state;
    s->good_match = good_length;
    s->max_lazy_match = max_lazy;
    s->nice_match = nice_length;
    s->max_chain_length = max_chain;
    return Z_OK;
}

/* =========================================================================
 * For the default windowBits of 15 and memLevel of 8, this function returns
 * a close to exact, as well as small, upper bound on the compressed size.
 * They are coded as constants here for a reason--if the #define's are
 * changed, then this function needs to be changed as well.  The return
 * value for 15 and 8 only works for those exact settings.
 *
 * For any setting other than those defaults for windowBits and memLevel,
 * the value returned is a conservative worst case for the maximum expansion
 * resulting from using fixed blocks instead of stored blocks, which deflate
 * can emit on compressed data for some combinations of the parameters.
 *
 * This function could be more sophisticated to provide closer upper bounds
 * for every combination of windowBits and memLevel, as well as wrap.
 * But even the conservative upper bound of about 14% expansion does not
 * seem onerous for output buffer allocation.
 */
uLong ZEXPORT deflateBound(strm, sourceLen)
    z_streamp strm;
    uLong sourceLen;
{
    deflate_state *s;
    uLong destLen;

    /* conservative upper bound */
    destLen = sourceLen +
              ((sourceLen + 7) >> 3) + ((sourceLen + 63) >> 6) + 11;

    /* if can't get parameters, return conservative bound */
    if (strm == Z_NULL || strm->state == Z_NULL)
        return destLen;

    /* if not default parameters, return conservative bound */
    s = strm->state;
    if (s->w_bits != 15 || s->hash_bits != 8 + 7)
        return destLen;

    /* default settings: return tight bound for that case */
    return compressBound(sourceLen);
}

/* =========================================================================
 * Put a short in the pending buffer. The 16-bit value is put in MSB order.
 * IN assertion: the stream state is correct and there is enough room in
 * pending_buf.
 */
local void putShortMSB (s, b)
    deflate_state *s;
    uInt b;
{
    put_byte(s, (Byte)(b >> 8));
    put_byte(s, (Byte)(b & 0xff));
}

/* =========================================================================
 * Flush as much pending output as possible. All deflate() output goes
 * through this function so some applications may wish to modify it
 * to avoid allocating a large strm->next_out buffer and copying into it.
 * (See also read_buf()).
 */
local void flush_pending(strm)
    z_streamp strm;
{
    unsigned len = strm->state->pending;

    if (len > strm->avail_out) len = strm->avail_out;
    if (len == 0) return;

    zmemcpy(strm->next_out, strm->state->pending_out, len);
    strm->next_out  += len;
    strm->state->pending_out  += len;
    strm->total_out += len;
    strm->avail_out  -= len;
    strm->state->pending -= len;
    if (strm->state->pending == 0) {
        strm->state->pending_out = strm->state->pending_buf;
    }
}

/* ========================================================================= */
int ZEXPORT deflate (strm, flush)
    z_streamp strm;
    int flush;
{
    int old_flush; /* value of flush param for previous deflate call */
    deflate_state *s;

    if (strm == Z_NULL || strm->state == Z_NULL ||
        flush > Z_FINISH || flush < 0) {
        return Z_STREAM_ERROR;
    }
    s = strm->state;

    if (strm->next_out == Z_NULL ||
        (strm->next_in == Z_NULL && strm->avail_in != 0) ||
        (s->status == FINISH_STATE && flush != Z_FINISH)) {
        ERR_RETURN(strm, Z_STREAM_ERROR);
    }
    if (strm->avail_out == 0) ERR_RETURN(strm, Z_BUF_ERROR);

    s->strm = strm; /* just in case */
    old_flush = s->last_flush;
    s->last_flush = flush;

    /* Write the header */
    if (s->status == INIT_STATE) {
#ifdef GZIP
        if (s->wrap == 2) {
            strm->adler = crc32(0L, Z_NULL, 0);
            put_byte(s, 31);
            put_byte(s, 139);
            put_byte(s, 8);
            if (s->gzhead == NULL) {
                put_byte(s, 0);
                put_byte(s, 0);
                put_byte(s, 0);
                put_byte(s, 0);
                put_byte(s, 0);
                put_byte(s, s->level == 9 ? 2 :
                            (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
                             4 : 0));
                put_byte(s, OS_CODE);
                s->status = BUSY_STATE;
            }
            else {
                put_byte(s, (s->gzhead->text ? 1 : 0) +
                            (s->gzhead->hcrc ? 2 : 0) +
                            (s->gzhead->extra == Z_NULL ? 0 : 4) +
                            (s->gzhead->name == Z_NULL ? 0 : 8) +
                            (s->gzhead->comment == Z_NULL ? 0 : 16)
                        );
                put_byte(s, (Byte)(s->gzhead->time & 0xff));
                put_byte(s, (Byte)((s->gzhead->time >> 8) & 0xff));
                put_byte(s, (Byte)((s->gzhead->time >> 16) & 0xff));
                put_byte(s, (Byte)((s->gzhead->time >> 24) & 0xff));
                put_byte(s, s->level == 9 ? 2 :
                            (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
                             4 : 0));
                put_byte(s, s->gzhead->os & 0xff);
                if (s->gzhead->extra != NULL) {
                    put_byte(s, s->gzhead->extra_len & 0xff);
                    put_byte(s, (s->gzhead->extra_len >> 8) & 0xff);
                }
                if (s->gzhead->hcrc)
                    strm->adler = crc32(strm->adler, s->pending_buf,
                                        s->pending);
                s->gzindex = 0;
                s->status = EXTRA_STATE;
            }
        }
        else
#endif
        {
            uInt header = (Z_DEFLATED + ((s->w_bits-8)<<4)) << 8;
            uInt level_flags;

            if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
                level_flags = 0;
            else if (s->level < 6)
                level_flags = 1;
            else if (s->level == 6)
                level_flags = 2;
            else
                level_flags = 3;
            header |= (level_flags << 6);
            if (s->strstart != 0) header |= PRESET_DICT;
            header += 31 - (header % 31);

            s->status = BUSY_STATE;
            putShortMSB(s, header);

            /* Save the adler32 of the preset dictionary: */
            if (s->strstart != 0) {
                putShortMSB(s, (uInt)(strm->adler >> 16));
                putShortMSB(s, (uInt)(strm->adler & 0xffff));
            }
            strm->adler = adler32(0L, Z_NULL, 0);
        }
    }
#ifdef GZIP
    if (s->status == EXTRA_STATE) {
        if (s->gzhead->extra != NULL) {
            uInt beg = s->pending;  /* start of bytes to update crc */

            while (s->gzindex < (s->gzhead->extra_len & 0xffff)) {
                if (s->pending == s->pending_buf_size) {
                    if (s->gzhead->hcrc && s->pending > beg)
                        strm->adler = crc32(strm->adler, s->pending_buf + beg,
                                            s->pending - beg);
                    flush_pending(strm);
                    beg = s->pending;
                    if (s->pending == s->pending_buf_size)
                        break;
                }
                put_byte(s, s->gzhead->extra[s->gzindex]);
                s->gzindex++;
            }
            if (s->gzhead->hcrc && s->pending > beg)
                strm->adler = crc32(strm->adler, s->pending_buf + beg,
                                    s->pending - beg);
            if (s->gzindex == s->gzhead->extra_len) {
                s->gzindex = 0;
                s->status = NAME_STATE;
            }
        }
        else
            s->status = NAME_STATE;
    }
    if (s->status == NAME_STATE) {
        if (s->gzhead->name != NULL) {
            uInt beg = s->pending;  /* start of bytes to update crc */
            int val;

            do {
                if (s->pending == s->pending_buf_size) {
                    if (s->gzhead->hcrc && s->pending > beg)
                        strm->adler = crc32(strm->adler, s->pending_buf + beg,
                                            s->pending - beg);
                    flush_pending(strm);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99在线观看| 99re免费视频精品全部| 亚洲精品免费在线观看| 中文字幕一区二区视频| 国产日韩欧美精品综合| 国产亚洲一区二区三区| 国产亚洲一区二区三区| 国产精品免费人成网站| 最新成人av在线| 亚洲欧美日韩一区| 亚洲一区二区在线播放相泽| 亚洲1区2区3区视频| 日韩中文字幕亚洲一区二区va在线 | 天天影视涩香欲综合网| 日韩在线一区二区三区| 免费观看久久久4p| 国产精品一线二线三线| 粉嫩在线一区二区三区视频| av在线免费不卡| 欧美三级视频在线播放| 日韩欧美国产综合| 中文字幕免费不卡| 亚洲五月六月丁香激情| 日韩精品午夜视频| 国产自产v一区二区三区c| 麻豆精品新av中文字幕| 国产成人啪免费观看软件| 99视频精品免费视频| 日本韩国一区二区三区| 欧美日韩成人综合天天影院| 日韩久久久精品| 国产精品天美传媒沈樵| 亚洲亚洲人成综合网络| 久久av资源网| 91在线精品秘密一区二区| 欧美午夜理伦三级在线观看| 久久综合九色综合欧美98| 亚洲三级小视频| 免费观看久久久4p| 成人黄色片在线观看| 欧美四级电影网| 精品99999| 亚洲美女淫视频| 紧缚捆绑精品一区二区| 91在线视频免费91| 欧美成人三级电影在线| 亚洲欧美偷拍卡通变态| 麻豆精品视频在线观看视频| 99riav一区二区三区| 欧美一级日韩一级| 日韩一区中文字幕| 美女尤物国产一区| 91在线视频18| 久久久久国产精品厨房| 亚洲第一主播视频| av网站免费线看精品| 欧美xxxx老人做受| 亚洲精品久久久蜜桃| 国产专区综合网| 欧美日韩视频在线第一区 | 亚洲精品国产精华液| 精品写真视频在线观看| 在线视频中文字幕一区二区| 久久看人人爽人人| 日韩国产在线观看| 91麻豆精品在线观看| 久久久一区二区| 免费美女久久99| 欧美三区免费完整视频在线观看| 国产免费观看久久| 久久99精品国产麻豆婷婷| 欧美曰成人黄网| 国产精品的网站| 国产在线不卡一卡二卡三卡四卡| 欧美精品日韩精品| 有坂深雪av一区二区精品| 成人深夜福利app| 欧美刺激脚交jootjob| 亚洲成av人综合在线观看| 色综合久久六月婷婷中文字幕| 欧美成人a在线| 青青草国产精品亚洲专区无| 欧美亚洲日本一区| 亚洲黄色小视频| 91亚洲精品一区二区乱码| 中文字幕第一区| 国产精品亚洲视频| 久久免费午夜影院| 国产一区二区三区不卡在线观看| 91精品婷婷国产综合久久竹菊| 一区二区三区欧美日| 色天使久久综合网天天| 中文字幕中文在线不卡住| 成人黄色在线网站| 国产精品久久久久影视| 丰满少妇在线播放bd日韩电影| 国产三区在线成人av| 国产一区二区三区免费| 久久久综合激的五月天| 国产在线一区观看| 久久久久久久久久久久电影 | 欧美丰满嫩嫩电影| 午夜欧美一区二区三区在线播放| 欧美日免费三级在线| 亚洲成人免费在线观看| 欧美人妖巨大在线| 午夜精品久久久久久久| 欧美精品在线观看播放| 五月婷婷综合激情| 欧美一级理论性理论a| 日韩va欧美va亚洲va久久| 日韩亚洲欧美综合| 国产一区欧美一区| 国产欧美日韩麻豆91| 99久久夜色精品国产网站| 亚洲色图都市小说| 欧美性大战久久久| 欧美a级一区二区| 久久人人爽人人爽| 国产 日韩 欧美大片| 综合久久久久久| 色噜噜狠狠色综合欧洲selulu| 亚洲一区在线看| 日韩一级免费观看| 国产suv精品一区二区6| 一区二区三区在线免费视频| 欧美日韩国产影片| 久久不见久久见免费视频7| 久久午夜电影网| 成人黄色免费短视频| 亚洲在线视频免费观看| 欧美一区二区三区小说| 国产福利精品导航| 亚洲色大成网站www久久九九| 欧美日韩视频在线一区二区| 久久 天天综合| 中文字幕一区二区三中文字幕| 日本道免费精品一区二区三区| 欧美bbbbb| 成人免费在线观看入口| 欧美三区在线视频| 国产精品99久久久久久有的能看 | 一个色综合网站| 91精品婷婷国产综合久久竹菊| 国产精品一区二区三区四区| 亚洲日本免费电影| 日韩欧美色电影| 成人av免费网站| 日本大胆欧美人术艺术动态| 中文字幕欧美激情| 欧美精品一卡两卡| 99精品欧美一区二区三区综合在线| 亚洲自拍都市欧美小说| 久久久久久亚洲综合影院红桃 | 1024成人网| 日韩欧美在线一区二区三区| 成人激情午夜影院| 蜜臀av亚洲一区中文字幕| 国产精品久久久久久久午夜片| 在线播放欧美女士性生活| 成人精品在线视频观看| 美日韩一区二区三区| 亚洲精品第1页| 亚洲国产成人在线| 欧美tk丨vk视频| 欧美日韩激情一区| 97se亚洲国产综合自在线不卡| 国产一区在线观看视频| 午夜精品久久久久| 亚洲免费看黄网站| 日本一区二区免费在线| 欧美一区二区人人喊爽| 色婷婷综合久久久中文一区二区| 韩国在线一区二区| 日韩高清一区在线| 亚洲一二三四区| 自拍偷拍亚洲激情| 中文字幕成人av| 久久精品欧美日韩精品| 日韩午夜小视频| 欧美色涩在线第一页| av电影在线不卡| 国产成人精品免费| 九色|91porny| 免费欧美高清视频| 日韩成人一区二区三区在线观看| 亚洲精品美腿丝袜| 亚洲欧美中日韩| 中文字幕免费不卡在线| 久久久久久**毛片大全| 欧美tk—视频vk| 精品少妇一区二区三区日产乱码 | 久久无码av三级| 日韩欧美一区电影| 9191成人精品久久| 欧美视频在线播放| 欧美性做爰猛烈叫床潮| 91电影在线观看| 在线一区二区三区四区| 色欲综合视频天天天|