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

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

?? inflate.c

?? 一個本地database引擎,支持中文T_Sql查詢,兼容DELPHI標準數據庫控件
?? C
?? 第 1 頁 / 共 4 頁
字號:
        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->head != Z_NULL)
                state->head->done = -1;
            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);
            len = BITS(4) + 8;
            if (len > state->wbits) {
                strm->msg = (char *)"invalid window size";
                state->mode = BAD;
                break;
            }
            state->dmax = 1U << len;
            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->head != Z_NULL)
                state->head->text = (int)((hold >> 8) & 1);
            if (state->flags & 0x0200) CRC2(state->check, hold);
            INITBITS();
            state->mode = TIME;
        case TIME:
            NEEDBITS(32);
            if (state->head != Z_NULL)
                state->head->time = hold;
            if (state->flags & 0x0200) CRC4(state->check, hold);
            INITBITS();
            state->mode = OS;
        case OS:
            NEEDBITS(16);
            if (state->head != Z_NULL) {
                state->head->xflags = (int)(hold & 0xff);
                state->head->os = (int)(hold >> 8);
            }
            if (state->flags & 0x0200) CRC2(state->check, hold);
            INITBITS();
            state->mode = EXLEN;
        case EXLEN:
            if (state->flags & 0x0400) {
                NEEDBITS(16);
                state->length = (unsigned)(hold);
                if (state->head != Z_NULL)
                    state->head->extra_len = (unsigned)hold;
                if (state->flags & 0x0200) CRC2(state->check, hold);
                INITBITS();
            }
            else if (state->head != Z_NULL)
                state->head->extra = Z_NULL;
            state->mode = EXTRA;
        case EXTRA:
            if (state->flags & 0x0400) {
                copy = state->length;
                if (copy > have) copy = have;
                if (copy) {
                    if (state->head != Z_NULL &&
                        state->head->extra != Z_NULL) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国v精品久久久网| 成人毛片老司机大片| 日韩av在线发布| 日本成人在线不卡视频| 国内精品不卡在线| 不卡一区在线观看| 欧美一区三区四区| 欧美精选在线播放| 久久免费看少妇高潮| 国产精品欧美精品| 亚洲人成精品久久久久久 | 一区二区三区四区中文字幕| 一区二区三区国产精品| 日韩国产欧美三级| 99免费精品在线| 日韩三级视频中文字幕| 中文字幕一区二区三| 日韩精品91亚洲二区在线观看| 成人综合激情网| 在线不卡的av| 亚洲小说春色综合另类电影| 国产一区三区三区| 日韩免费电影网站| 视频一区二区中文字幕| av午夜一区麻豆| 久久久久久久久久久电影| 亚洲第一福利视频在线| 91福利国产成人精品照片| 亚洲国产精品t66y| 国产精品一区二区91| 日韩欧美高清在线| 老司机精品视频在线| 91精品中文字幕一区二区三区| 一二三区精品视频| 欧美性欧美巨大黑白大战| 亚洲蜜臀av乱码久久精品| 99久久综合精品| 欧美国产精品专区| 91天堂素人约啪| 亚洲免费视频成人| 欧美军同video69gay| 日韩主播视频在线| 欧美成人一区二区| 成人美女视频在线观看18| 成人免费一区二区三区在线观看| 欧美另类变人与禽xxxxx| 色综合久久久久久久久| 午夜精品免费在线观看| 在线精品视频一区二区| 国产精品丝袜91| 国产另类ts人妖一区二区| 欧美高清hd18日本| 欧美丰满嫩嫩电影| 久久久精品影视| 激情图片小说一区| 亚洲国产美女搞黄色| 精品一区二区在线视频| 欧美综合一区二区| 国产亚洲一区二区三区| 秋霞电影一区二区| 国产一区二区精品久久| 美女脱光内衣内裤视频久久网站 | 成人免费三级在线| 国产高清精品网站| 精品国产亚洲在线| 色综合婷婷久久| 国产精品美女久久久久av爽李琼 | 国产欧美久久久精品影院| 国产精品99久久久久久似苏梦涵 | 久久久久久一二三区| 欧美无砖砖区免费| 国产精品123区| 国产一区二区美女诱惑| 午夜国产不卡在线观看视频| 久久九九影视网| 欧美日韩高清不卡| 欧美亚洲动漫另类| 色8久久精品久久久久久蜜| 狠狠色综合播放一区二区| 天天色 色综合| 午夜精品一区二区三区三上悠亚 | 国内外成人在线| 日本va欧美va欧美va精品| 久久黄色级2电影| 成人av网站在线观看免费| 亚洲乱码国产乱码精品精小说| 亚洲免费观看高清| 激情偷乱视频一区二区三区| 色婷婷av久久久久久久| 日韩一级高清毛片| 亚洲国产精品一区二区久久恐怖片| 美女诱惑一区二区| 欧洲国产伦久久久久久久| 午夜精品久久一牛影视| 蜜桃在线一区二区三区| 国产成人夜色高潮福利影视| 成人在线视频一区| 精品视频免费在线| 欧美电影在线免费观看| 久久―日本道色综合久久| 中文字幕一区二区在线播放| 亚洲国产乱码最新视频 | 欧美一区二区三区四区久久| 欧美成va人片在线观看| 亚洲精品老司机| 国产一区二区女| 欧美日韩视频不卡| 亚洲人午夜精品天堂一二香蕉| 奇米精品一区二区三区四区 | 亚洲一二三四区不卡| 精品一区免费av| 欧美高清视频不卡网| 18欧美亚洲精品| 粉嫩aⅴ一区二区三区四区五区| 欧美日韩一区二区三区在线| 国产精品色一区二区三区| 午夜精品久久久久久久99樱桃| 成人18精品视频| 国产午夜精品一区二区三区视频| 亚洲一二三专区| 在线观看一区二区精品视频| 亚洲色图在线视频| 成人av资源站| 亚洲色大成网站www久久九九| 国产一区二区毛片| 久久先锋影音av| 国产成人无遮挡在线视频| 日韩欧美国产综合在线一区二区三区| 亚洲五月六月丁香激情| 色偷偷久久人人79超碰人人澡| 日韩伦理电影网| 欧美视频你懂的| 青青青伊人色综合久久| 91精品国产色综合久久不卡电影| 日韩激情中文字幕| 欧美xxxxx裸体时装秀| 成人ar影院免费观看视频| 国产日产欧美一区| av爱爱亚洲一区| 亚洲综合激情小说| www久久久久| 色天使久久综合网天天| 美女视频黄 久久| 日本一区二区三区在线不卡| 91亚洲国产成人精品一区二三| 天天综合日日夜夜精品| 国产日韩欧美综合在线| 91久久久免费一区二区| 精品一区二区三区视频| 国产精品久久久久久福利一牛影视 | 老司机一区二区| 国产精品成人网| 日韩一区二区高清| 91麻豆自制传媒国产之光| 秋霞av亚洲一区二区三| 亚洲综合另类小说| 欧美激情一区二区三区蜜桃视频| 欧美美女喷水视频| 色琪琪一区二区三区亚洲区| 国产精品一区在线观看乱码| 五月天精品一区二区三区| ...av二区三区久久精品| 国产性做久久久久久| 欧美一级片免费看| 欧美精品三级日韩久久| 欧美在线免费播放| 91蝌蚪porny成人天涯| 成人污污视频在线观看| 国产精品一二三四五| 美女www一区二区| 精品一区二区三区免费| 美女网站一区二区| 极品少妇xxxx精品少妇偷拍| 久久精品国产免费看久久精品| 五月激情六月综合| 免费久久精品视频| 国内精品久久久久影院色| 国产精品一二三| 国产v日产∨综合v精品视频| 国产一二精品视频| 成人黄色综合网站| 在线观看av一区| 日韩女同互慰一区二区| 久久久久久久久97黄色工厂| 亚洲美女区一区| 亚洲综合另类小说| 久久99精品久久久久久国产越南| 国产麻豆一精品一av一免费| 国产高清精品久久久久| 在线精品国精品国产尤物884a| 欧美日韩成人综合天天影院| 26uuu久久天堂性欧美| 国产精品短视频| 日本在线播放一区二区三区| 国产白丝网站精品污在线入口| 在线观看日韩高清av| 久久久精品国产99久久精品芒果| 国产精品日日摸夜夜摸av| 亚洲成人av免费| 99天天综合性|