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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? inflate.c

?? 這是一個(gè)三層的進(jìn)銷存系統(tǒng)
?? C
?? 第 1 頁 / 共 4 頁
字號:

    /* if window not in use yet, initialize */
    if (state->wsize == 0) {
        state->wsize = 1U << state->wbits;
        state->write = 0;
        state->whave = 0;
    }

    /* copy state->wsize or less output bytes into the circular window */
    copy = out - strm->avail_out;
    if (copy >= state->wsize) {
        zmemcpy(state->window, strm->next_out - state->wsize, state->wsize);
        state->write = 0;
        state->whave = state->wsize;
    }
    else {
        dist = state->wsize - state->write;
        if (dist > copy) dist = copy;
        zmemcpy(state->window + state->write, strm->next_out - copy, dist);
        copy -= dist;
        if (copy) {
            zmemcpy(state->window, strm->next_out - copy, copy);
            state->write = copy;
            state->whave = state->wsize;
        }
        else {
            state->write += dist;
            if (state->write == state->wsize) state->write = 0;
            if (state->whave < state->wsize) state->whave += dist;
        }
    }
    return 0;
}

/* Macros for inflate(): */

/* check function to use adler32() for zlib or crc32() for gzip */
#ifdef GUNZIP
#  define UPDATE(check, buf, len) \
    (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
#else
#  define UPDATE(check, buf, len) adler32(check, buf, len)
#endif

/* check macros for header crc */
#ifdef GUNZIP
#  define CRC2(check, word) \
    do { \
        hbuf[0] = (unsigned char)(word); \
        hbuf[1] = (unsigned char)((word) >> 8); \
        check = crc32(check, hbuf, 2); \
    } while (0)

#  define CRC4(check, word) \
    do { \
        hbuf[0] = (unsigned char)(word); \
        hbuf[1] = (unsigned char)((word) >> 8); \
        hbuf[2] = (unsigned char)((word) >> 16); \
        hbuf[3] = (unsigned char)((word) >> 24); \
        check = crc32(check, hbuf, 4); \
    } while (0)
#endif

/* Load registers with state in inflate() for speed */
#define LOAD() \
    do { \
        put = strm->next_out; \
        left = strm->avail_out; \
        next = strm->next_in; \
        have = strm->avail_in; \
        hold = state->hold; \
        bits = state->bits; \
    } while (0)

/* Restore state from registers in inflate() */
#define RESTORE() \
    do { \
        strm->next_out = put; \
        strm->avail_out = left; \
        strm->next_in = next; \
        strm->avail_in = have; \
        state->hold = hold; \
        state->bits = bits; \
    } while (0)

/* Clear the input bit accumulator */
#define INITBITS() \
    do { \
        hold = 0; \
        bits = 0; \
    } while (0)

/* Get a byte of input into the bit accumulator, or return from inflate()
   if there is no input available. */
#define PULLBYTE() \
    do { \
        if (have == 0) goto inf_leave; \
        have--; \
        hold += (unsigned long)(*next++) << bits; \
        bits += 8; \
    } while (0)

/* Assure that there are at least n bits in the bit accumulator.  If there is
   not enough available input to do that, then return from inflate(). */
#define NEEDBITS(n) \
    do { \
        while (bits < (unsigned)(n)) \
            PULLBYTE(); \
    } while (0)

/* Return the low n bits of the bit accumulator (n < 16) */
#define BITS(n) \
    ((unsigned)hold & ((1U << (n)) - 1))

/* Remove n bits from the bit accumulator */
#define DROPBITS(n) \
    do { \
        hold >>= (n); \
        bits -= (unsigned)(n); \
    } while (0)

/* Remove zero to seven bits as needed to go to a byte boundary */
#define BYTEBITS() \
    do { \
        hold >>= bits & 7; \
        bits -= bits & 7; \
    } while (0)

/* Reverse the bytes in a 32-bit value */
#define REVERSE(q) \
    ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
     (((q) & 0xff00) << 8) + (((q) & 0xff) << 24))

/*
   inflate() uses a state machine to process as much input data and generate as
   much output data as possible before returning.  The state machine is
   structured roughly as follows:

    for (;;) switch (state) {
    ...
    case STATEn:
        if (not enough input data or output space to make progress)
            return;
        ... make progress ...
        state = STATEm;
        break;
    ...
    }

   so when inflate() is called again, the same case is attempted again, and
   if the appropriate resources are provided, the machine proceeds to the
   next state.  The NEEDBITS() macro is usually the way the state evaluates
   whether it can proceed or should return.  NEEDBITS() does the return if
   the requested bits are not available.  The typical use of the BITS macros
   is:

        NEEDBITS(n);
        ... do something with BITS(n) ...
        DROPBITS(n);

   where NEEDBITS(n) either returns from inflate() if there isn't enough
   input left to load n bits into the accumulator, or it continues.  BITS(n)
   gives the low n bits in the accumulator.  When done, DROPBITS(n) drops
   the low n bits off the accumulator.  INITBITS() clears the accumulator
   and sets the number of available bits to zero.  BYTEBITS() discards just
   enough bits to put the accumulator on a byte boundary.  After BYTEBITS()
   and a NEEDBITS(8), then BITS(8) would return the next byte in the stream.

   NEEDBITS(n) uses PULLBYTE() to get an available byte of input, or to return
   if there is no input available.  The decoding of variable length codes uses
   PULLBYTE() directly in order to pull just enough bytes to decode the next
   code, and no more.

   Some states loop until they get enough input, making sure that enough
   state information is maintained to continue the loop where it left off
   if NEEDBITS() returns in the loop.  For example, want, need, and keep
   would all have to actually be part of the saved state in case NEEDBITS()
   returns:

    case STATEw:
        while (want < need) {
            NEEDBITS(n);
            keep[want++] = BITS(n);
            DROPBITS(n);
        }
        state = STATEx;
    case STATEx:

   As shown above, if the next state is also the next case, then the break
   is omitted.

   A state may also return if there is not enough output space available to
   complete that state.  Those states are copying stored data, writing a
   literal byte, and copying a matching string.

   When returning, a "goto inf_leave" is used to update the total counters,
   update the check value, and determine whether any progress has been made
   during that inflate() call in order to return the proper return code.
   Progress is defined as a change in either strm->avail_in or strm->avail_out.
   When there is a window, goto inf_leave will update the window with the last
   output written.  If a goto inf_leave occurs in the middle of decompression
   and there is no window currently, goto inf_leave will create one and copy
   output to the window for the next call of inflate().

   In this implementation, the flush parameter of inflate() only affects the
   return code (per zlib.h).  inflate() always writes as much as possible to
   strm->next_out, given the space available and the provided input--the effect
   documented in zlib.h of Z_SYNC_FLUSH.  Furthermore, inflate() always defers
   the allocation of and copying into a sliding window until necessary, which
   provides the effect documented in zlib.h for Z_FINISH when the entire input
   stream available.  So the only thing the flush parameter actually does is:
   when flush is set to Z_FINISH, inflate() cannot return Z_OK.  Instead it
   will return Z_BUF_ERROR if it has not reached the end of the stream.
 */

int ZEXPORT inflate(strm, flush)
z_streamp strm;
int flush;
{
    struct inflate_state FAR *state;
    unsigned char FAR *next;    /* next input */
    unsigned char FAR *put;     /* next output */
    unsigned have, left;        /* available input and output */
    unsigned long hold;         /* bit buffer */
    unsigned bits;              /* bits in bit buffer */
    unsigned in, out;           /* save starting available input and output */
    unsigned copy;              /* number of stored or match bytes to copy */
    unsigned char FAR *from;    /* where to copy match bytes from */
    code this;                  /* current decoding table entry */
    code last;                  /* parent table entry */
    unsigned len;               /* length to copy for repeats, bits to drop */
    int ret;                    /* return code */
#ifdef GUNZIP
    unsigned char hbuf[4];      /* buffer for gzip header crc calculation */
#endif
    static const unsigned short order[19] = /* permutation of code lengths */
        {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};

    if (strm == Z_NULL || strm->state == Z_NULL || strm->next_out == Z_NULL ||
        (strm->next_in == Z_NULL && strm->avail_in != 0))
        return Z_STREAM_ERROR;

    state = (struct inflate_state FAR *)strm->state;
    if (state->mode == TYPE) state->mode = TYPEDO;      /* skip check */
    LOAD();
    in = have;
    out = left;
    ret = Z_OK;
    for (;;)
        switch (state->mode) {
        case HEAD:
            if (state->wrap == 0) {
                state->mode = TYPEDO;
                break;
            }
            NEEDBITS(16);
#ifdef GUNZIP
            if ((state->wrap & 2) && hold == 0x8b1f) {  /* gzip header */
                state->check = crc32(0L, Z_NULL, 0);
                CRC2(state->check, hold);
                INITBITS();
                state->mode = FLAGS;
                break;
            }
            state->flags = 0;           /* expect zlib header */
            if (!(state->wrap & 1) ||   /* check if zlib header allowed */
#else
            if (
#endif
                ((BITS(8) << 8) + (hold >> 8)) % 31) {
                strm->msg = (char *)"incorrect header check";
                state->mode = BAD;
                break;
            }
            if (BITS(4) != Z_DEFLATED) {
                strm->msg = (char *)"unknown compression method";
                state->mode = BAD;
                break;
            }
            DROPBITS(4);
            if (BITS(4) + 8 > state->wbits) {
                strm->msg = (char *)"invalid window size";
                state->mode = BAD;
                break;
            }
            Tracev((stderr, "inflate:   zlib header ok\n"));
            strm->adler = state->check = adler32(0L, Z_NULL, 0);
            state->mode = hold & 0x200 ? DICTID : TYPE;
            INITBITS();
            break;
#ifdef GUNZIP
        case FLAGS:
            NEEDBITS(16);
            state->flags = (int)(hold);
            if ((state->flags & 0xff) != Z_DEFLATED) {
                strm->msg = (char *)"unknown compression method";
                state->mode = BAD;
                break;
            }
            if (state->flags & 0xe000) {
                strm->msg = (char *)"unknown header flags set";
                state->mode = BAD;
                break;
            }
            if (state->flags & 0x0200) CRC2(state->check, hold);
            INITBITS();
            state->mode = TIME;
        case TIME:
            NEEDBITS(32);
            if (state->flags & 0x0200) CRC4(state->check, hold);
            INITBITS();
            state->mode = OS;
        case OS:
            NEEDBITS(16);
            if (state->flags & 0x0200) CRC2(state->check, hold);
            INITBITS();
            state->mode = EXLEN;
        case EXLEN:

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
秋霞午夜鲁丝一区二区老狼| 天天色天天操综合| www激情久久| 全部av―极品视觉盛宴亚洲| 亚洲精品一区二区三区香蕉| 黄色资源网久久资源365| 国产精品伦一区| 国产日韩成人精品| 久久新电视剧免费观看| 精品国产99国产精品| 欧洲日韩一区二区三区| 91国偷自产一区二区三区成为亚洲经典 | 欧美日韩一区二区三区不卡| 日本vs亚洲vs韩国一区三区| 国产精品国产馆在线真实露脸| 日韩一级免费观看| 欧美精品 国产精品| 91精品国产黑色紧身裤美女| 国产女同性恋一区二区| 久久免费看少妇高潮| 欧美国产一区二区| 亚洲人成亚洲人成在线观看图片 | 欧美一区二区三区小说| 欧美美女黄视频| 欧美精品一区二区三区蜜臀| 久久久久久久电影| 一区二区三区四区在线| 亚洲影院免费观看| 日韩一区精品字幕| 99re热这里只有精品视频| 欧美精品久久一区| 中文字幕综合网| 久久精品免费观看| 在线视频你懂得一区| 欧美成人三级在线| 欧美一级精品大片| 欧美精品高清视频| 在线中文字幕一区二区| 欧美视频一区二区| 亚洲综合免费观看高清完整版| 久久av老司机精品网站导航| 欧亚洲嫩模精品一区三区| 亚洲国产高清在线观看视频| 国产精品久久久久四虎| 丁香亚洲综合激情啪啪综合| www成人在线观看| 蜜臀99久久精品久久久久久软件| 在线观看免费一区| 国产精品欧美久久久久无广告| 日本在线播放一区二区三区| 免费欧美日韩国产三级电影| 99久精品国产| 中文字幕国产精品一区二区| 国产一区二区不卡| 国产日产精品一区| 91亚洲精品乱码久久久久久蜜桃 | 欧美美女视频在线观看| 老司机午夜精品| 日韩免费看的电影| 国产精品99久久久久久似苏梦涵 | 老司机免费视频一区二区| 久久精品夜夜夜夜久久| 欧美高清激情brazzers| av中文字幕亚洲| 成人av中文字幕| 国产精品乡下勾搭老头1| 三级久久三级久久久| 亚洲欧洲成人av每日更新| 欧美精品一区二区在线播放| 欧美亚洲动漫精品| 色综合久久久久| 91视频你懂的| 欧美夫妻性生活| 亚洲1区2区3区视频| 欧美成人午夜电影| 精品日韩av一区二区| 在线播放/欧美激情| 欧美卡1卡2卡| 日韩一区二区三区免费观看| 欧美色男人天堂| 欧美日韩亚州综合| 精品成a人在线观看| 久久久久综合网| 国产精品三级视频| 一区二区三区四区在线播放| 有码一区二区三区| 蜜桃av一区二区三区电影| 国产一区视频导航| 91国模大尺度私拍在线视频| 精品视频一区三区九区| 欧美一级欧美三级在线观看| 欧美tk—视频vk| 亚洲综合在线五月| 国产成人免费av在线| 成人激情午夜影院| 99久久综合狠狠综合久久| 欧美日韩激情在线| 国产精品国产三级国产普通话三级| 亚洲欧美一区二区三区孕妇| 精品制服美女久久| 欧美婷婷六月丁香综合色| 国产精品免费人成网站| 久久精品国产999大香线蕉| 色婷婷国产精品综合在线观看| 日韩免费电影网站| 亚洲国产日韩在线一区模特| 99在线精品一区二区三区| 精品国产一区二区三区久久影院 | 蜜臀国产一区二区三区在线播放 | 91亚洲永久精品| 中国av一区二区三区| 蜜臀精品久久久久久蜜臀| 7777精品伊人久久久大香线蕉的 | 欧美哺乳videos| 亚洲精品菠萝久久久久久久| 国产一区二区免费视频| 久久久美女艺术照精彩视频福利播放| 亚洲综合999| 欧美视频一区二区三区| 午夜精品免费在线观看| 欧美另类变人与禽xxxxx| 亚洲成年人网站在线观看| 欧美日韩在线亚洲一区蜜芽| 午夜精品福利一区二区三区av| 欧美精品aⅴ在线视频| 日韩国产精品大片| 2欧美一区二区三区在线观看视频| 青草av.久久免费一区| 国产婷婷一区二区| 欧美婷婷六月丁香综合色| 精品一区二区三区免费| 中文字幕一区二区在线播放| 欧美日韩精品一区二区三区蜜桃| 美女精品一区二区| 一区二区三区中文字幕电影 | 日韩免费看的电影| 色系网站成人免费| 处破女av一区二区| 日韩影院在线观看| 亚洲电影一区二区三区| 亚洲精品一区二区三区影院| 欧美日韩国产一二三| 成人黄色软件下载| 国产一区二区伦理| 日韩在线一区二区| 蜜桃av一区二区三区| 亚洲bt欧美bt精品777| 一区二区久久久| 一区二区在线电影| 一区二区三区日韩欧美精品| 国产精品久久久久毛片软件| 精品99一区二区| 91理论电影在线观看| 国产一区二区三区免费在线观看| 亚洲成人av福利| 午夜欧美大尺度福利影院在线看| 亚洲黄色录像片| 婷婷久久综合九色综合绿巨人| 亚洲精品国产无套在线观| 亚洲老司机在线| 亚洲成人高清在线| 麻豆精品在线播放| 成人免费毛片app| 99久久精品国产毛片| 欧美丰满一区二区免费视频| 日韩一级完整毛片| 自拍偷拍欧美激情| 人人狠狠综合久久亚洲| 国产精品一区二区久久不卡 | 中文字幕精品三区| 亚洲欧美激情一区二区| 美腿丝袜亚洲一区| 日本韩国欧美一区二区三区| 精品国产区一区| 尤物av一区二区| 99久久99久久精品国产片果冻| 欧美无乱码久久久免费午夜一区| 日韩欧美国产小视频| 亚洲自拍偷拍网站| av高清不卡在线| 久久久国产一区二区三区四区小说 | 欧美夫妻性生活| 最新高清无码专区| 国产成人精品亚洲午夜麻豆| 欧美一区二区三区在线观看视频| 亚洲欧洲日产国码二区| 日韩成人av影视| 欧美一区二区三区婷婷月色| 一二三四社区欧美黄| av亚洲精华国产精华精华| 国产色91在线| 99久久99久久综合| 亚洲精品成a人| 欧美亚洲高清一区二区三区不卡| 亚洲精品久久嫩草网站秘色| 色综合色狠狠天天综合色| 亚洲国产精品尤物yw在线观看| 91丨porny丨国产入口| 一个色综合网站| 日韩免费观看2025年上映的电影|