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

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

?? inflate.c

?? 這是一個三層的進銷存系統
?? C
?? 第 1 頁 / 共 4 頁
字號:
/* inflate.c -- zlib decompression
 * Copyright (C) 1995-2003 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;
    state->mode = HEAD;
    state->last = 0;
    state->havedict = 0;
    state->wsize = 0;
    state->whave = 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 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 = (voidpf)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;
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
北岛玲一区二区三区四区| 日韩精品一区二区三区中文不卡 | 日韩免费看的电影| 国产视频一区在线观看| 亚洲成人在线免费| 97国产精品videossex| 日韩美女视频一区二区在线观看| 国产精品的网站| 美女任你摸久久| 欧美亚洲一区二区在线| 国产精品狼人久久影院观看方式| 美女性感视频久久| 欧美日韩一区二区三区免费看 | 日韩一区二区三| 亚洲国产欧美日韩另类综合 | 欧美日韩一区二区在线观看| 国产精品成人一区二区三区夜夜夜| 美日韩一区二区| 3d动漫精品啪啪1区2区免费 | 国产在线精品一区二区不卡了| 欧美美女喷水视频| 亚洲一区二区在线免费观看视频| 97久久人人超碰| 日韩一区有码在线| av一区二区三区| 国产精品久久二区二区| 懂色中文一区二区在线播放| 久久精品亚洲精品国产欧美kt∨| 蜜桃在线一区二区三区| 91精品国产综合久久久久久久久久| 亚洲综合在线视频| 欧美性生活久久| 亚洲国产另类精品专区| 欧美男人的天堂一二区| 亚洲成人综合视频| 9191成人精品久久| 免费人成网站在线观看欧美高清| 欧美一区在线视频| 精品综合免费视频观看| 26uuu色噜噜精品一区二区| 裸体健美xxxx欧美裸体表演| 精品国产乱码久久久久久夜甘婷婷 | 色婷婷av一区二区三区软件| 亚洲v精品v日韩v欧美v专区| 五月婷婷另类国产| 国产精品视频九色porn| 成人免费视频国产在线观看| 中文字幕不卡的av| 成人毛片视频在线观看| 18欧美乱大交hd1984| 色婷婷av一区| 午夜精品视频在线观看| 日韩视频在线你懂得| 国模娜娜一区二区三区| 国产精品嫩草影院com| 99久久精品免费看国产| 亚洲精品免费视频| 在线91免费看| 成人午夜伦理影院| 亚洲福利电影网| 久久男人中文字幕资源站| av综合在线播放| 丝袜美腿亚洲色图| 亚洲国产精品ⅴa在线观看| 欧美在线综合视频| 国产自产高清不卡| 亚洲精品一二三| 日韩一区二区三区在线| av中文字幕在线不卡| 日本午夜一区二区| 亚洲天堂网中文字| 日韩欧美精品在线视频| 91久久香蕉国产日韩欧美9色| 轻轻草成人在线| 亚洲欧美日韩国产中文在线| 日韩视频一区在线观看| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 日韩欧美一区在线| 91美女在线看| 国产一区二区精品久久99| 亚洲综合精品自拍| 久久久久青草大香线综合精品| 欧美日免费三级在线| www.欧美日韩| 国产一区二区三区电影在线观看| 亚洲成人福利片| 亚洲人成亚洲人成在线观看图片 | 久久影院视频免费| 欧美日韩在线三级| 91原创在线视频| 国产一区日韩二区欧美三区| 日本亚洲欧美天堂免费| 亚洲国产日韩综合久久精品| 亚洲欧美激情插 | 精品成人私密视频| 欧美乱妇15p| 欧美日韩精品是欧美日韩精品| 成人黄色片在线观看| 麻豆成人久久精品二区三区红| 亚洲一卡二卡三卡四卡五卡| 国产精品久久久久久亚洲伦| 久久美女高清视频| 久久伊人蜜桃av一区二区| 欧美电影免费观看高清完整版 | 日韩一区日韩二区| 国产香蕉久久精品综合网| 91精品国产丝袜白色高跟鞋| 色久优优欧美色久优优| 91免费小视频| 色综合天天做天天爱| 成人高清免费在线播放| 国产 欧美在线| 成人国产在线观看| 99久久精品免费看| 色综合天天做天天爱| 一本一道综合狠狠老| 91福利国产成人精品照片| 91啪亚洲精品| 欧美日韩日日骚| 欧美精品777| 91精品国产欧美一区二区18| 日韩视频一区二区在线观看| 日韩美女一区二区三区四区| 精品久久久久久久久久久院品网 | 欧美怡红院视频| 欧美高清视频不卡网| 欧美一区2区视频在线观看| 日韩女优制服丝袜电影| 精品99久久久久久| 国产精品视频麻豆| 一区二区三区电影在线播| 香蕉影视欧美成人| 久久99精品国产麻豆婷婷洗澡| 国产成人免费网站| 91首页免费视频| 在线播放/欧美激情| 久久人人超碰精品| 亚洲精品国产a久久久久久| 图片区小说区国产精品视频| 久久99精品一区二区三区三区| 福利电影一区二区| 欧美午夜视频网站| 久久婷婷色综合| 亚洲蜜臀av乱码久久精品蜜桃| 日本91福利区| 99免费精品视频| 日韩一区二区三区在线| 国产精品国产三级国产普通话蜜臀| 亚洲成年人影院| 国产成人自拍高清视频在线免费播放| 色域天天综合网| 精品欧美久久久| 亚洲欧美日韩中文字幕一区二区三区| 欧美aaa在线| 色综合久久综合| 久久一区二区视频| 午夜a成v人精品| 99久久综合狠狠综合久久| 欧美一区日韩一区| 国产精品美日韩| 久久国产精品99久久人人澡| 色哟哟精品一区| 国产三级一区二区| 美女精品一区二区| 色综合色综合色综合| 久久精品亚洲国产奇米99| 午夜免费欧美电影| 色综合中文综合网| 国产精品小仙女| 欧美精品黑人性xxxx| 亚洲私人黄色宅男| 国产精品正在播放| 日韩欧美一级精品久久| 亚洲一级二级三级| 国产成人免费在线观看不卡| 日韩欧美国产精品一区| 午夜欧美视频在线观看| 色狠狠一区二区三区香蕉| 国产精品福利电影一区二区三区四区| 青青草国产精品97视觉盛宴 | 不卡一区二区三区四区| 久久一留热品黄| 久久99精品国产91久久来源| 色视频一区二区| 综合自拍亚洲综合图不卡区| 国产中文字幕精品| 日韩精品中午字幕| 日韩av网站在线观看| 91 com成人网| 亚洲成人三级小说| 欧美三级日韩三级国产三级| 亚洲综合图片区| 色视频成人在线观看免| 日韩毛片在线免费观看| 91视频观看免费| 亚洲人成网站色在线观看| 免费黄网站欧美| 欧美tickle裸体挠脚心vk| 国产在线精品一区二区| 久久久精品黄色|