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

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

?? inflate.c

?? SDL文件。SDL_ERROwenjian.....
?? C
?? 第 1 頁 / 共 4 頁
字號:
/* inflate.c -- zlib decompression
 * Copyright (C) 1995-2005 Mark Adler
 * For conditions of distribution and use, see copyright notice in zlib.h
 */

/*
 * Change history:
 *
 * 1.2.beta0    24 Nov 2002
 * - First version -- complete rewrite of inflate to simplify code, avoid
 *   creation of window when not needed, minimize use of window when it is
 *   needed, make inffast.c even faster, implement gzip decoding, and to
 *   improve code readability and style over the previous zlib inflate code
 *
 * 1.2.beta1    25 Nov 2002
 * - Use pointers for available input and output checking in inffast.c
 * - Remove input and output counters in inffast.c
 * - Change inffast.c entry and loop from avail_in >= 7 to >= 6
 * - Remove unnecessary second byte pull from length extra in inffast.c
 * - Unroll direct copy to three copies per loop in inffast.c
 *
 * 1.2.beta2    4 Dec 2002
 * - Change external routine names to reduce potential conflicts
 * - Correct filename to inffixed.h for fixed tables in inflate.c
 * - Make hbuf[] unsigned char to match parameter type in inflate.c
 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset)
 *   to avoid negation problem on Alphas (64 bit) in inflate.c
 *
 * 1.2.beta3    22 Dec 2002
 * - Add comments on state->bits assertion in inffast.c
 * - Add comments on op field in inftrees.h
 * - Fix bug in reuse of allocated window after inflateReset()
 * - Remove bit fields--back to byte structure for speed
 * - Remove distance extra == 0 check in inflate_fast()--only helps for lengths
 * - Change post-increments to pre-increments in inflate_fast(), PPC biased?
 * - Add compile time option, POSTINC, to use post-increments instead (Intel?)
 * - Make MATCH copy in inflate() much faster for when inflate_fast() not used
 * - Use local copies of stream next and avail values, as well as local bit
 *   buffer and bit count in inflate()--for speed when inflate_fast() not used
 *
 * 1.2.beta4    1 Jan 2003
 * - Split ptr - 257 statements in inflate_table() to avoid compiler warnings
 * - Move a comment on output buffer sizes from inffast.c to inflate.c
 * - Add comments in inffast.c to introduce the inflate_fast() routine
 * - Rearrange window copies in inflate_fast() for speed and simplification
 * - Unroll last copy for window match in inflate_fast()
 * - Use local copies of window variables in inflate_fast() for speed
 * - Pull out common write == 0 case for speed in inflate_fast()
 * - Make op and len in inflate_fast() unsigned for consistency
 * - Add FAR to lcode and dcode declarations in inflate_fast()
 * - Simplified bad distance check in inflate_fast()
 * - Added inflateBackInit(), inflateBack(), and inflateBackEnd() in new
 *   source file infback.c to provide a call-back interface to inflate for
 *   programs like gzip and unzip -- uses window as output buffer to avoid
 *   window copying
 *
 * 1.2.beta5    1 Jan 2003
 * - Improved inflateBack() interface to allow the caller to provide initial
 *   input in strm.
 * - Fixed stored blocks bug in inflateBack()
 *
 * 1.2.beta6    4 Jan 2003
 * - Added comments in inffast.c on effectiveness of POSTINC
 * - Typecasting all around to reduce compiler warnings
 * - Changed loops from while (1) or do {} while (1) to for (;;), again to
 *   make compilers happy
 * - Changed type of window in inflateBackInit() to unsigned char *
 *
 * 1.2.beta7    27 Jan 2003
 * - Changed many types to unsigned or unsigned short to avoid warnings
 * - Added inflateCopy() function
 *
 * 1.2.0        9 Mar 2003
 * - Changed inflateBack() interface to provide separate opaque descriptors
 *   for the in() and out() functions
 * - Changed inflateBack() argument and in_func typedef to swap the length
 *   and buffer address return values for the input function
 * - Check next_in and next_out for Z_NULL on entry to inflate()
 *
 * The history for versions after 1.2.0 are in ChangeLog in zlib distribution.
 */

#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"

#ifdef MAKEFIXED
#  ifndef BUILDFIXED
#    define BUILDFIXED
#  endif
#endif

/* function prototypes */
local void fixedtables OF((struct inflate_state FAR *state));
local int updatewindow OF((z_streamp strm, unsigned out));
#ifdef BUILDFIXED
   void makefixed OF((void));
#endif
local unsigned syncsearch OF((unsigned FAR *have, unsigned char FAR *buf,
                              unsigned len));

int ZEXPORT inflateReset(strm)
z_streamp strm;
{
    struct inflate_state FAR *state;

    if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;
    strm->total_in = strm->total_out = state->total = 0;
    strm->msg = Z_NULL;
    strm->adler = 1;        /* to support ill-conceived Java test suite */
    state->mode = HEAD;
    state->last = 0;
    state->havedict = 0;
    state->dmax = 32768U;
    state->head = Z_NULL;
    state->wsize = 0;
    state->whave = 0;
    state->write = 0;
    state->hold = 0;
    state->bits = 0;
    state->lencode = state->distcode = state->next = state->codes;
    Tracev((stderr, "inflate: reset\n"));
    return Z_OK;
}

int ZEXPORT inflatePrime(strm, bits, value)
z_streamp strm;
int bits;
int value;
{
    struct inflate_state FAR *state;

    if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;
    if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR;
    value &= (1L << bits) - 1;
    state->hold += value << state->bits;
    state->bits += bits;
    return Z_OK;
}

int ZEXPORT inflateInit2_(strm, windowBits, version, stream_size)
z_streamp strm;
int windowBits;
const char *version;
int stream_size;
{
    struct inflate_state FAR *state;

    if (version == Z_NULL || version[0] != ZLIB_VERSION[0] ||
        stream_size != (int)(sizeof(z_stream)))
        return Z_VERSION_ERROR;
    if (strm == Z_NULL) return Z_STREAM_ERROR;
    strm->msg = Z_NULL;                 /* in case we return an error */
    if (strm->zalloc == (alloc_func)0) {
        strm->zalloc = zcalloc;
        strm->opaque = (voidpf)0;
    }
    if (strm->zfree == (free_func)0) strm->zfree = zcfree;
    state = (struct inflate_state FAR *)
            ZALLOC(strm, 1, sizeof(struct inflate_state));
    if (state == Z_NULL) return Z_MEM_ERROR;
    Tracev((stderr, "inflate: allocated\n"));
    strm->state = (struct internal_state FAR *)state;
    if (windowBits < 0) {
        state->wrap = 0;
        windowBits = -windowBits;
    }
    else {
        state->wrap = (windowBits >> 4) + 1;
#ifdef GUNZIP
        if (windowBits < 48) windowBits &= 15;
#endif
    }
    if (windowBits < 8 || windowBits > 15) {
        ZFREE(strm, state);
        strm->state = Z_NULL;
        return Z_STREAM_ERROR;
    }
    state->wbits = (unsigned)windowBits;
    state->window = Z_NULL;
    return inflateReset(strm);
}

int ZEXPORT inflateInit_(strm, version, stream_size)
z_streamp strm;
const char *version;
int stream_size;
{
    return inflateInit2_(strm, DEF_WBITS, version, stream_size);
}

/*
   Return state with length and distance decoding tables and index sizes set to
   fixed code decoding.  Normally this returns fixed tables from inffixed.h.
   If BUILDFIXED is defined, then instead this routine builds the tables the
   first time it's called, and returns those tables the first time and
   thereafter.  This reduces the size of the code by about 2K bytes, in
   exchange for a little execution time.  However, BUILDFIXED should not be
   used for threaded applications, since the rewriting of the tables and virgin
   may not be thread-safe.
 */
local void fixedtables(state)
struct inflate_state FAR *state;
{
#ifdef BUILDFIXED
    static int virgin = 1;
    static code *lenfix, *distfix;
    static code fixed[544];

    /* build fixed huffman tables if first call (may not be thread safe) */
    if (virgin) {
        unsigned sym, bits;
        static code *next;

        /* literal/length table */
        sym = 0;
        while (sym < 144) state->lens[sym++] = 8;
        while (sym < 256) state->lens[sym++] = 9;
        while (sym < 280) state->lens[sym++] = 7;
        while (sym < 288) state->lens[sym++] = 8;
        next = fixed;
        lenfix = next;
        bits = 9;
        inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);

        /* distance table */
        sym = 0;
        while (sym < 32) state->lens[sym++] = 5;
        distfix = next;
        bits = 5;
        inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);

        /* do this just once */
        virgin = 0;
    }
#else /* !BUILDFIXED */
#   include "inffixed.h"
#endif /* BUILDFIXED */
    state->lencode = lenfix;
    state->lenbits = 9;
    state->distcode = distfix;
    state->distbits = 5;
}

#ifdef MAKEFIXED
#include <stdio.h>

/*
   Write out the inffixed.h that is #include'd above.  Defining MAKEFIXED also
   defines BUILDFIXED, so the tables are built on the fly.  makefixed() writes
   those tables to stdout, which would be piped to inffixed.h.  A small program
   can simply call makefixed to do this:

    void makefixed(void);

    int main(void)
    {
        makefixed();
        return 0;
    }

   Then that can be linked with zlib built with MAKEFIXED defined and run:

    a.out > inffixed.h
 */
void makefixed()
{
    unsigned low, size;
    struct inflate_state state;

    fixedtables(&state);
    puts("    /* inffixed.h -- table for decoding fixed codes");
    puts("     * Generated automatically by makefixed().");
    puts("     */");
    puts("");
    puts("    /* WARNING: this file should *not* be used by applications.");
    puts("       It is part of the implementation of this library and is");
    puts("       subject to change. Applications should only use zlib.h.");
    puts("     */");
    puts("");
    size = 1U << 9;
    printf("    static const code lenfix[%u] = {", size);
    low = 0;
    for (;;) {
        if ((low % 7) == 0) printf("\n        ");
        printf("{%u,%u,%d}", state.lencode[low].op, state.lencode[low].bits,
               state.lencode[low].val);
        if (++low == size) break;
        putchar(',');
    }
    puts("\n    };");
    size = 1U << 5;
    printf("\n    static const code distfix[%u] = {", size);
    low = 0;
    for (;;) {
        if ((low % 6) == 0) printf("\n        ");
        printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
               state.distcode[low].val);
        if (++low == size) break;
        putchar(',');
    }
    puts("\n    };");
}
#endif /* MAKEFIXED */

/*
   Update the window with the last wsize (normally 32K) bytes written before
   returning.  If window does not exist yet, create it.  This is only called
   when a window is already in use, or when output has been written during this
   inflate call, but the end of the deflate stream has not been reached yet.
   It is also called to create a window for dictionary data when a dictionary
   is loaded.

   Providing output buffers larger than 32K to inflate() should provide a speed
   advantage, since only the last 32K of output is copied to the sliding window
   upon return from inflate(), and since all distances after the first 32K of
   output will fall in the output data, making match copies simpler and faster.
   The advantage may be dependent on the size of the processor's data caches.
 */
local int updatewindow(strm, out)
z_streamp strm;
unsigned out;
{
    struct inflate_state FAR *state;
    unsigned copy, dist;

    state = (struct inflate_state FAR *)strm->state;

    /* if it hasn't been done already, allocate space for the window */
    if (state->window == Z_NULL) {
        state->window = (unsigned char FAR *)
                        ZALLOC(strm, 1U << state->wbits,
                               sizeof(unsigned char));
        if (state->window == Z_NULL) return 1;
    }

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
96av麻豆蜜桃一区二区| av一区二区三区四区| 欧美精品自拍偷拍| 日本视频一区二区| 中文字幕在线一区| 91精品国产一区二区三区蜜臀| 狠狠狠色丁香婷婷综合久久五月| 欧美国产一区二区| 7777精品伊人久久久大香线蕉最新版| 国模少妇一区二区三区| 亚洲国产精品成人综合| 欧美在线不卡一区| 国产凹凸在线观看一区二区| 一区二区免费看| 26uuu国产日韩综合| 在线观看区一区二| 国产成人免费视频网站| 婷婷六月综合网| 久久综合丝袜日本网| 在线观看成人小视频| 国产精品综合av一区二区国产馆| 日韩毛片精品高清免费| 日韩视频一区二区三区| 欧美在线看片a免费观看| 国产大片一区二区| 麻豆精品在线看| 亚洲国产美女搞黄色| 中文字幕精品综合| 日韩欧美亚洲另类制服综合在线| 一本久久a久久免费精品不卡| 韩国午夜理伦三级不卡影院| 亚洲精品老司机| 国产日韩欧美精品综合| 日韩一区二区三区视频在线| 欧美性受极品xxxx喷水| 99精品视频免费在线观看| 国产一区二区三区四区五区美女| 三级成人在线视频| 一级做a爱片久久| ...xxx性欧美| 亚洲欧洲国产日韩| 欧美国产一区视频在线观看| 欧美xxxx老人做受| 色综合亚洲欧洲| 成人自拍视频在线| 国产毛片精品视频| 狠狠色丁香婷婷综合久久片| 日韩制服丝袜先锋影音| 亚洲国产综合91精品麻豆| 亚洲精品第一国产综合野| 国产精品高潮久久久久无| 中文字幕欧美三区| 欧美激情综合五月色丁香小说| 久久一区二区视频| 欧美一区二区三区色| 色琪琪一区二区三区亚洲区| 国产成人av资源| 狠狠色狠狠色综合日日91app| 美女免费视频一区二区| 麻豆久久久久久久| 激情综合五月婷婷| 国产大片一区二区| a4yy欧美一区二区三区| 91女厕偷拍女厕偷拍高清| 色综合天天性综合| 91精品91久久久中77777| 在线免费亚洲电影| 欧美日韩国产精选| 69堂精品视频| 日韩欧美黄色影院| 欧美不卡激情三级在线观看| 日韩三级精品电影久久久| 久久综合99re88久久爱| 国产精品视频一二三| 亚洲欧美另类小说视频| 亚洲国产综合人成综合网站| 亚洲国产成人va在线观看天堂| 亚洲午夜一区二区| 美腿丝袜亚洲一区| 国产一区二区三区四区五区入口| 懂色av一区二区夜夜嗨| 色婷婷久久久综合中文字幕| 欧美人成免费网站| 亚洲精品在线观| 国产精品久久久久影院老司| 亚洲精品写真福利| 亚洲午夜国产一区99re久久| 日韩经典一区二区| 久久精品国产99国产| 国产成人精品免费在线| 91色在线porny| 日韩一区二区三区免费观看| 国产三级一区二区| 一区二区三区四区乱视频| 人禽交欧美网站| 粉嫩一区二区三区性色av| 欧美亚洲日本一区| 欧美大片拔萝卜| 久久综合一区二区| 亚洲欧洲中文日韩久久av乱码| 亚洲成人免费看| 国产.欧美.日韩| 91精品国产综合久久久蜜臀图片| 国产欧美日韩三区| 午夜精品久久久久久久久久| 国产乱人伦偷精品视频免下载 | 久久伊99综合婷婷久久伊| 国产欧美一区二区三区鸳鸯浴| 一区二区免费在线播放| 粉嫩aⅴ一区二区三区四区五区| 欧美日韩一本到| 久久久五月婷婷| 亚洲国产成人porn| caoporm超碰国产精品| 777久久久精品| 亚洲青青青在线视频| 国产精品正在播放| 8x8x8国产精品| 亚洲图片你懂的| 国产一区二区调教| 51精品久久久久久久蜜臀| 1区2区3区欧美| 国产剧情在线观看一区二区 | 欧美日韩久久一区二区| 久久久五月婷婷| 日韩激情一区二区| 色8久久人人97超碰香蕉987| 日韩精品一区二区三区四区视频 | 国产精品久久久久久妇女6080 | 韩国在线一区二区| 欧美性生活久久| 亚洲国产成人一区二区三区| 免费观看30秒视频久久| 色婷婷久久综合| 国产午夜精品一区二区三区四区| 一二三四区精品视频| 国产一区二区不卡老阿姨| 欧美一区二区三区人| 性做久久久久久免费观看| 99re在线精品| 中文字幕一区三区| 成人免费av网站| 国产拍揄自揄精品视频麻豆| 国产一区 二区| 久久综合网色—综合色88| 强制捆绑调教一区二区| 欧美久久久久久久久中文字幕| 一二三四区精品视频| 色先锋aa成人| 一区二区在线观看视频在线观看| aa级大片欧美| 亚洲视频一区二区在线| 99久久综合狠狠综合久久| 中文字幕欧美国产| 从欧美一区二区三区| 国产精品网站导航| 成人动漫在线一区| **欧美大码日韩| 欧美自拍偷拍一区| 中文字幕一区二区三中文字幕| 成人精品视频一区二区三区 | 91麻豆精品国产| 午夜精品免费在线| 欧美成人性战久久| 国产盗摄一区二区三区| 18涩涩午夜精品.www| 色婷婷久久久久swag精品| 亚洲欧美日韩系列| 91精品国产入口在线| 老司机免费视频一区二区三区| 国产欧美一区二区在线| 99久久国产免费看| 亚洲国产综合91精品麻豆| 精品日韩成人av| 粉嫩在线一区二区三区视频| 中文字幕一区二区三区不卡在线 | 国产精品一区2区| 专区另类欧美日韩| 在线视频亚洲一区| 国产中文一区二区三区| 亚洲欧洲日本在线| 欧美剧情片在线观看| 久久不见久久见免费视频1| 精品国产免费一区二区三区四区| 成人动漫精品一区二区| 亚洲欧美在线观看| 中文字幕日韩av资源站| 91国内精品野花午夜精品| 狠狠色狠狠色合久久伊人| 国产精品麻豆欧美日韩ww| 制服丝袜亚洲网站| 国产成人亚洲精品狼色在线 | **欧美大码日韩| 日韩欧美精品在线| av成人免费在线| 日本怡春院一区二区| 欧美国产1区2区| 91麻豆精品国产91| 波多野结衣中文字幕一区 | 日韩免费观看高清完整版在线观看|