亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲一区二区偷拍精品| 91精品国产美女浴室洗澡无遮挡| 日韩精品成人一区二区三区| 亚洲影视在线播放| 亚洲成人在线网站| 午夜激情综合网| 蜜桃av一区二区三区电影| 婷婷久久综合九色综合绿巨人 | 国产美女精品人人做人人爽| 久久丁香综合五月国产三级网站 | 中文一区在线播放| 国产三级一区二区| 国产欧美精品区一区二区三区| 中文字幕乱码久久午夜不卡| 国产精品人人做人人爽人人添| 国产性天天综合网| 一区二区不卡在线视频 午夜欧美不卡在 | 亚洲精品国产第一综合99久久| **性色生活片久久毛片| 亚洲综合在线免费观看| 亚洲成av人片观看| 精品中文av资源站在线观看| 岛国精品一区二区| 欧美在线不卡视频| 日韩一卡二卡三卡国产欧美| 久久久三级国产网站| 亚洲精品中文字幕在线观看| 热久久国产精品| 风间由美一区二区三区在线观看 | 99热这里都是精品| 538prom精品视频线放| 久久伊人中文字幕| 综合婷婷亚洲小说| 青青草视频一区| jizz一区二区| 欧美一区二区三区免费在线看| 久久久久久免费毛片精品| 亚洲日本一区二区| 久久99热狠狠色一区二区| 99久久国产综合精品色伊| 91 com成人网| 国产精品美女一区二区三区| 亚洲成av人片在www色猫咪| 国产成人精品免费| 在线91免费看| 亚洲一区二区三区爽爽爽爽爽| 久久66热re国产| 欧美日韩国产区一| 亚洲人成影院在线观看| 精品亚洲欧美一区| 欧美日韩国产精选| 最新国产の精品合集bt伙计| 狠狠色狠狠色合久久伊人| 欧美日韩一区中文字幕| 欧美国产精品久久| 奇米色一区二区| 欧美三级视频在线| 亚洲乱码中文字幕| 成人国产精品免费观看视频| 91精品国产高清一区二区三区| 亚洲色图19p| 91在线porny国产在线看| 久久精品一区蜜桃臀影院| 日韩电影免费在线| 欧美精品亚洲一区二区在线播放| 国产精品免费人成网站| 国产sm精品调教视频网站| 日韩一区国产二区欧美三区| 午夜天堂影视香蕉久久| 91国模大尺度私拍在线视频| 国产精品卡一卡二| 国产.欧美.日韩| 国产三级精品视频| 国产成人av电影在线播放| 2023国产一二三区日本精品2022| 美女网站在线免费欧美精品| 日韩一区二区在线播放| 秋霞午夜av一区二区三区| 欧美一级电影网站| 国产在线一区二区综合免费视频| 精品国产乱码久久| 国内精品在线播放| 久久亚区不卡日本| 懂色一区二区三区免费观看| 国产农村妇女毛片精品久久麻豆| 成人免费视频caoporn| 中文字幕中文字幕在线一区| 91官网在线观看| 视频一区视频二区在线观看| 欧美精品第1页| 久久国产福利国产秒拍| 久久久久国产免费免费| 成人午夜又粗又硬又大| 日韩美女视频一区二区 | 99久久国产综合精品女不卡| 一区二区三区在线观看欧美| 欧美久久久一区| 国产在线精品一区二区| 中文字幕日韩一区二区| 日本韩国精品在线| 美国三级日本三级久久99| 亚洲国产精品传媒在线观看| 色美美综合视频| 精品一区二区日韩| |精品福利一区二区三区| 8x8x8国产精品| 不卡一区二区在线| 免费高清视频精品| 亚洲欧美偷拍三级| 精品捆绑美女sm三区| 91免费观看视频| 美国毛片一区二区| 亚洲精品菠萝久久久久久久| 91精品国产91热久久久做人人| 懂色av中文字幕一区二区三区| 亚洲线精品一区二区三区 | 91在线精品一区二区三区| 亚洲成精国产精品女| 欧美国产一区二区在线观看| 欧美日韩高清一区二区不卡| 风间由美一区二区av101| 男男gaygay亚洲| 亚洲欧洲精品天堂一级| 日韩精品专区在线| 欧美亚洲动漫精品| 成人小视频在线| 久久97超碰国产精品超碰| 亚欧色一区w666天堂| 成人欧美一区二区三区白人 | 国产毛片精品一区| 五月婷婷激情综合网| 亚洲天堂2016| 中文字幕免费不卡在线| 日韩视频一区二区| 91麻豆精品国产综合久久久久久| 91亚洲精品一区二区乱码| 国产成人在线视频免费播放| 日本女优在线视频一区二区| 亚洲伊人色欲综合网| 日韩毛片一二三区| 国产精品久久久久国产精品日日| 精品国产不卡一区二区三区| 日韩午夜在线观看视频| 9191精品国产综合久久久久久| 日本久久电影网| 色婷婷久久久亚洲一区二区三区 | 亚洲国产视频网站| 亚洲一区二区三区四区的| 亚洲精品视频一区二区| 国产精品人人做人人爽人人添| 国产亚洲一区二区在线观看| 精品久久久久一区| 欧美精品一区二区三区一线天视频 | 91精品国产91热久久久做人人| 欧美天堂一区二区三区| 欧美性大战xxxxx久久久| 色婷婷久久综合| 欧美日韩国产色站一区二区三区| 欧美日韩免费电影| 精品日韩成人av| 国产目拍亚洲精品99久久精品| 国产精品视频免费看| 中文字幕视频一区二区三区久| 尤物视频一区二区| 日日摸夜夜添夜夜添精品视频| 五月婷婷综合激情| 狠狠色丁香九九婷婷综合五月| 精久久久久久久久久久| 国产成人免费视频网站| 99re热视频这里只精品| 日本高清无吗v一区| 欧美日韩国产123区| 欧美xxx久久| 国产精品久久三| 亚洲午夜激情网站| 久久激情综合网| 国产1区2区3区精品美女| 美女视频网站久久| 亚洲免费观看高清完整版在线 | 亚洲国产一二三| 国产一二三精品| 成人av网站大全| 欧美视频在线观看一区| 日韩三级免费观看| 中文字幕日韩精品一区 | 国产精品乱码人人做人人爱| 亚洲精品久久久久久国产精华液 | xnxx国产精品| 亚洲九九爱视频| 精品一区二区在线免费观看| 99这里只有精品| 日韩午夜激情av| 成人免费一区二区三区视频| 日韩av网站免费在线| 成人一区二区在线观看| 欧美一卡二卡在线观看| 国产精品久久久久影视| 久久不见久久见中文字幕免费| 99在线精品免费| 久久久三级国产网站|