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

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

?? deflate.c

?? 這是一個三層的進銷存系統
?? C
?? 第 1 頁 / 共 4 頁
字號:
        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 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_RLE) {
        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;
}

/* =========================================================================
 * 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) {
            put_byte(s, 31);
            put_byte(s, 139);
            put_byte(s, 8);
            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, 255);
            s->status = BUSY_STATE;
            strm->adler = crc32(0L, Z_NULL, 0);
        }
        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);
        }
    }

    /* Flush as much pending output as possible */
    if (s->pending != 0) {
        flush_pending(strm);
        if (strm->avail_out == 0) {
            /* Since avail_out is 0, deflate will be called again with
             * more output space, but possibly with both pending and
             * avail_in equal to zero. There won't be anything to do,
             * but this is not an error situation so make sure we
             * return OK instead of BUF_ERROR at next call of deflate:
             */
            s->last_flush = -1;
            return Z_OK;
        }

    /* Make sure there is something to do and avoid duplicate consecutive
     * flushes. For repeated and useless calls with Z_FINISH, we keep
     * returning Z_STREAM_END instead of Z_BUF_ERROR.
     */
    } else if (strm->avail_in == 0 && flush <= old_flush &&
               flush != Z_FINISH) {
        ERR_RETURN(strm, Z_BUF_ERROR);
    }

    /* User must not provide more input after the first FINISH: */
    if (s->status == FINISH_STATE && strm->avail_in != 0) {
        ERR_RETURN(strm, Z_BUF_ERROR);
    }

    /* Start a new block or continue the current one.
     */
    if (strm->avail_in != 0 || s->lookahead != 0 ||
        (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) {
        block_state bstate;

        bstate = (*(configuration_table[s->level].func))(s, flush);

        if (bstate == finish_started || bstate == finish_done) {
            s->status = FINISH_STATE;
        }
        if (bstate == need_more || bstate == finish_started) {
            if (strm->avail_out == 0) {
                s->last_flush = -1; /* avoid BUF_ERROR next call, see above */
            }
            return Z_OK;
            /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
             * of deflate should use the same flush parameter to make sure
             * that the flush is complete. So we don't have to output an
             * empty block here, this will be done at next call. This also
             * ensures that for a very small output buffer, we emit at most
             * one empty block.
             */
        }
        if (bstate == block_done) {
            if (flush == Z_PARTIAL_FLUSH) {
                _tr_align(s);
            } else { /* FULL_FLUSH or SYNC_FLUSH */
                _tr_stored_block(s, (char*)0, 0L, 0);
                /* For a full flush, this empty block will be recognized
                 * as a special marker by inflate_sync().
                 */
                if (flush == Z_FULL_FLUSH) {
                    CLEAR_HASH(s);             /* forget history */
                }
            }
            flush_pending(strm);
            if (strm->avail_out == 0) {
              s->last_flush = -1; /* avoid BUF_ERROR at next call, see above */
              return Z_OK;
            }
        }
    }
    Assert(strm->avail_out > 0, "bug2");

    if (flush != Z_FINISH) return Z_OK;
    if (s->wrap <= 0) return Z_STREAM_END;

    /* Write the trailer */
#ifdef GZIP
    if (s->wrap == 2) {
        put_byte(s, (Byte)(strm->adler & 0xff));
        put_byte(s, (Byte)((strm->adler >> 8) & 0xff));
        put_byte(s, (Byte)((strm->adler >> 16) & 0xff));
        put_byte(s, (Byte)((strm->adler >> 24) & 0xff));
        put_byte(s, (Byte)(strm->total_in & 0xff));
        put_byte(s, (Byte)((strm->total_in >> 8) & 0xff));
        put_byte(s, (Byte)((strm->total_in >> 16) & 0xff));
        put_byte(s, (Byte)((strm->total_in >> 24) & 0xff));
    }
    else
#endif
    {
        putShortMSB(s, (uInt)(strm->adler >> 16));
        putShortMSB(s, (uInt)(strm->adler & 0xffff));
    }
    flush_pending(strm);
    /* If avail_out is zero, the application will call deflate again
     * to flush the rest.
     */
    if (s->wrap > 0) s->wrap = -s->wrap; /* write the trailer only once! */
    return s->pending != 0 ? Z_OK : Z_STREAM_END;
}

/* ========================================================================= */
int ZEXPORT deflateEnd (strm)
    z_streamp strm;
{
    int status;

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

    status = strm->state->status;
    if (status != INIT_STATE && status != BUSY_STATE &&
        status != FINISH_STATE) {
      return Z_STREAM_ERROR;
    }

    /* Deallocate in reverse order of allocations: */
    TRY_FREE(strm, strm->state->pending_buf);
    TRY_FREE(strm, strm->state->head);
    TRY_FREE(strm, strm->state->prev);
    TRY_FREE(strm, strm->state->window);

    ZFREE(strm, strm->state);
    strm->state = Z_NULL;

    return status == BUSY_STATE ? Z_DATA_ERROR : Z_OK;
}

/* =========================================================================
 * Copy the source state to the destination state.
 * To simplify the source, this is not supported for 16-bit MSDOS (which
 * doesn't have enough memory anyway to duplicate compression states).
 */
int ZEXPORT deflateCopy (dest, source)
    z_streamp dest;
    z_streamp source;
{
#ifdef MAXSEG_64K
    return Z_STREAM_ERROR;
#else
    deflate_state *ds;
    deflate_state *ss;
    ushf *overlay;


    if (source == Z_NULL || dest == Z_NULL || source->state == Z_NULL) {
        return Z_STREAM_ERROR;
    }

    ss = source->state;

    *dest = *source;

    ds = (deflate_state *) ZALLOC(dest, 1, sizeof(deflate_state));
    if (ds == Z_NULL) return Z_MEM_ERROR;
    dest->state = (struct internal_state FAR *) ds;
    *ds = *ss;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久99久久久精品齐齐| 欧美丰满少妇xxxbbb| 日本女人一区二区三区| 国产精品女人毛片| 91精品国产综合久久蜜臀| av在线不卡电影| 开心九九激情九九欧美日韩精美视频电影 | 日韩欧美一级二级| 色域天天综合网| 福利一区二区在线| 国产自产2019最新不卡| 日本欧美一区二区在线观看| 亚洲女人****多毛耸耸8| 久久久久久久av麻豆果冻| 欧美一区二区三区在线视频| 欧洲中文字幕精品| 色综合一个色综合亚洲| 成人一区二区三区视频在线观看 | 精品一二线国产| 丝袜美腿亚洲综合| 亚洲一区二区三区免费视频| 国产精品久久久久一区 | 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 亚洲精品免费看| 在线中文字幕一区二区| 日本不卡的三区四区五区| 亚洲成人激情社区| 一区二区三区国产精品| 国产精品亲子乱子伦xxxx裸| 日韩精品一区二区三区在线播放 | 欧美高清hd18日本| 欧美日韩在线免费视频| 色婷婷亚洲综合| 97久久久精品综合88久久| 国产成人精品影视| 国产馆精品极品| 成人免费观看视频| caoporn国产一区二区| 成人免费视频播放| 成人性色生活片| aaa国产一区| 91免费观看视频在线| 91国偷自产一区二区开放时间| 91亚洲精华国产精华精华液| 91丨porny丨户外露出| 日本久久一区二区| 欧美亚洲动漫精品| 欧美精品国产精品| 日韩一区二区三区av| 欧美精品一区二区三区一线天视频| 日韩欧美一二三四区| 久久免费电影网| 中文字幕亚洲一区二区va在线| 国产精品久久777777| 亚洲一区二区三区在线| 天天影视网天天综合色在线播放 | 亚洲国产日日夜夜| 日韩精品一区第一页| 蜜芽一区二区三区| 精品一区二区久久久| 成人听书哪个软件好| 91丨porny丨中文| 91麻豆精品国产综合久久久久久 | 99精品国产一区二区三区不卡| 色综合久久66| 欧美一卡2卡3卡4卡| 日本一二三不卡| 亚洲国产综合人成综合网站| 日本视频中文字幕一区二区三区| 国产一区在线精品| 91亚洲国产成人精品一区二三| 欧美二区乱c少妇| 国产午夜精品一区二区三区四区| 亚洲人成7777| 青青草精品视频| 成人h精品动漫一区二区三区| 欧美日韩国产中文| 国产色产综合色产在线视频| 亚洲午夜精品久久久久久久久| 久久99精品久久久久| 91老司机福利 在线| 欧美成人综合网站| 一区二区三区电影在线播| 久久国产精品99久久人人澡| 色悠悠久久综合| 欧美精品一区二区高清在线观看| 伊人色综合久久天天人手人婷| 美女在线视频一区| 91福利在线导航| 欧美国产1区2区| 日本三级韩国三级欧美三级| 成人h动漫精品| 精品sm在线观看| 午夜av一区二区三区| 99久久精品情趣| 26uuu色噜噜精品一区二区| 亚洲第一主播视频| 成人福利电影精品一区二区在线观看 | 色婷婷av久久久久久久| 精品国产乱子伦一区| 亚洲www啪成人一区二区麻豆| 粉嫩av一区二区三区在线播放 | 国产亚洲一本大道中文在线| 天堂一区二区在线免费观看| 不卡的av电影| 久久久蜜桃精品| 欧美aaa在线| 欧美日韩一区二区三区免费看| 中文在线免费一区三区高中清不卡| 日韩精品一级二级| 91福利国产成人精品照片| 国产精品系列在线| 国产一区二区不卡| 精品美女在线播放| 日韩福利视频导航| 欧美三级电影一区| 亚洲乱码国产乱码精品精小说| 国产99精品视频| 国产午夜精品理论片a级大结局| 久久成人免费网| 精品国产一二三| 麻豆专区一区二区三区四区五区| 欧美在线视频全部完| 亚洲精品乱码久久久久| 91在线视频网址| 国产精品久久久久久久久免费相片| 国产一区欧美日韩| 欧美不卡123| 韩国在线一区二区| 久久品道一品道久久精品| 国产美女娇喘av呻吟久久| 欧美刺激脚交jootjob| 久久精品国产**网站演员| 日韩免费在线观看| 久久精品99久久久| 精品国产乱码久久| 黄色成人免费在线| 国产婷婷一区二区| 不卡的电视剧免费网站有什么| 国产精品伦一区二区三级视频| av网站一区二区三区| 亚洲色图在线播放| 91黄色激情网站| 日韩精品午夜视频| 欧美xxx久久| 国产高清不卡一区二区| 中文字幕av一区二区三区免费看 | 一区二区三区四区激情| 欧美午夜影院一区| 日韩av一区二区三区| www国产成人免费观看视频 深夜成人网| 久久国产精品露脸对白| 日本一区二区成人在线| 色噜噜狠狠一区二区三区果冻| 亚洲综合无码一区二区| 宅男噜噜噜66一区二区66| 精品午夜久久福利影院| 国产丝袜欧美中文另类| 91精品福利在线| 日本欧美大码aⅴ在线播放| 久久免费的精品国产v∧| 91在线免费视频观看| 爽好多水快深点欧美视频| 精品对白一区国产伦| 99麻豆久久久国产精品免费| 亚洲高清一区二区三区| 久久久一区二区三区捆绑**| 99久久综合99久久综合网站| 亚洲成av人片| 日本一区二区三区在线不卡| 欧美亚洲日本国产| 激情久久五月天| 一区二区三区四区视频精品免费 | 国产精品不卡一区二区三区| 欧美日韩亚洲综合一区| 韩国毛片一区二区三区| 亚洲黄色小说网站| 久久天天做天天爱综合色| 欧洲精品中文字幕| 国产乱码精品一区二区三区忘忧草| 国产精品久久国产精麻豆99网站| 欧美精品丝袜中出| 成人毛片视频在线观看| 日韩精品91亚洲二区在线观看| 亚洲国产精品黑人久久久| 欧美人妇做爰xxxⅹ性高电影| 国产一级精品在线| 天天操天天色综合| 中文字幕亚洲不卡| 精品美女在线观看| 欧美性大战久久久久久久蜜臀| 粉嫩13p一区二区三区| 日韩精品一级中文字幕精品视频免费观看| 国产欧美日韩综合| 日韩一区二区视频| 在线一区二区三区四区五区| 国产久卡久卡久卡久卡视频精品| 亚洲图片欧美一区| 日韩美女精品在线| 国产女人18水真多18精品一级做|