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

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

?? blast.c

?? 一款用來進(jìn)行網(wǎng)絡(luò)模擬的軟件
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* blast.c * Copyright (C) 2003 Mark Adler * For conditions of distribution and use, see copyright notice in blast.h * version 1.1, 16 Feb 2003 * * blast.c decompresses data compressed by the PKWare Compression Library. * This function provides functionality similar to the explode() function of * the PKWare library, hence the name "blast". * * This decompressor is based on the excellent format description provided by * Ben Rudiak-Gould in comp.compression on August 13, 2001.  Interestingly, the * example Ben provided in the post is incorrect.  The distance 110001 should * instead be 111000.  When corrected, the example byte stream becomes: * *    00 04 82 24 25 8f 80 7f * * which decompresses to "AIAIAIAIAIAIA" (without the quotes). *//* * Change history: * * 1.0  12 Feb 2003     - First version * 1.1  16 Feb 2003     - Fixed distance check for > 4 GB uncompressed data */#include <setjmp.h>             /* for setjmp(), longjmp(), and jmp_buf */#include "blast.h"              /* prototype for blast() */#define local static            /* for local function definitions */#define MAXBITS 13              /* maximum code length */#define MAXWIN 4096             /* maximum window size *//* input and output state */struct state {    /* input state */    blast_in infun;             /* input function provided by user */    void *inhow;                /* opaque information passed to infun() */    unsigned char *in;          /* next input location */    unsigned left;              /* available input at in */    int bitbuf;                 /* bit buffer */    int bitcnt;                 /* number of bits in bit buffer */    /* input limit error return state for bits() and decode() */    jmp_buf env;    /* output state */    blast_out outfun;           /* output function provided by user */    void *outhow;               /* opaque information passed to outfun() */    unsigned next;              /* index of next write location in out[] */    int first;                  /* true to check distances (for first 4K) */    unsigned char out[MAXWIN];  /* output buffer and sliding window */};/* * Return need bits from the input stream.  This always leaves less than * eight bits in the buffer.  bits() works properly for need == 0. * * Format notes: * * - Bits are stored in bytes from the least significant bit to the most *   significant bit.  Therefore bits are dropped from the bottom of the bit *   buffer, using shift right, and new bytes are appended to the top of the *   bit buffer, using shift left. */local int bits(struct state *s, int need){    int val;            /* bit accumulator */    /* load at least need bits into val */    val = s->bitbuf;    while (s->bitcnt < need) {        if (s->left == 0) {            s->left = s->infun(s->inhow, &(s->in));            if (s->left == 0) longjmp(s->env, 1);       /* out of input */        }        val |= (int)(*(s->in)++) << s->bitcnt;          /* load eight bits */        s->left--;        s->bitcnt += 8;    }    /* drop need bits and update buffer, always zero to seven bits left */    s->bitbuf = val >> need;    s->bitcnt -= need;    /* return need bits, zeroing the bits above that */    return val & ((1 << need) - 1);}/* * Huffman code decoding tables.  count[1..MAXBITS] is the number of symbols of * each length, which for a canonical code are stepped through in order. * symbol[] are the symbol values in canonical order, where the number of * entries is the sum of the counts in count[].  The decoding process can be * seen in the function decode() below. */struct huffman {    short *count;       /* number of symbols of each length */    short *symbol;      /* canonically ordered symbols */};/* * Decode a code from the stream s using huffman table h.  Return the symbol or * a negative value if there is an error.  If all of the lengths are zero, i.e. * an empty code, or if the code is incomplete and an invalid code is received, * then -9 is returned after reading MAXBITS bits. * * Format notes: * * - The codes as stored in the compressed data are bit-reversed relative to *   a simple integer ordering of codes of the same lengths.  Hence below the *   bits are pulled from the compressed data one at a time and used to *   build the code value reversed from what is in the stream in order to *   permit simple integer comparisons for decoding. * * - The first code for the shortest length is all ones.  Subsequent codes of *   the same length are simply integer decrements of the previous code.  When *   moving up a length, a one bit is appended to the code.  For a complete *   code, the last code of the longest length will be all zeros.  To support *   this ordering, the bits pulled during decoding are inverted to apply the *   more "natural" ordering starting with all zeros and incrementing. */local int decode(struct state *s, struct huffman *h){    int len;            /* current number of bits in code */    int code;           /* len bits being decoded */    int first;          /* first code of length len */    int count;          /* number of codes of length len */    int index;          /* index of first code of length len in symbol table */    int bitbuf;         /* bits from stream */    int left;           /* bits left in next or left to process */    short *next;        /* next number of codes */    bitbuf = s->bitbuf;    left = s->bitcnt;    code = first = index = 0;    len = 1;    next = h->count + 1;    while (1) {        while (left--) {            code |= (bitbuf & 1) ^ 1;   /* invert code */            bitbuf >>= 1;            count = *next++;            if (code < first + count) { /* if length len, return symbol */                s->bitbuf = bitbuf;                s->bitcnt = (s->bitcnt - len) & 7;                return h->symbol[index + (code - first)];            }            index += count;             /* else update for next length */            first += count;            first <<= 1;            code <<= 1;            len++;        }        left = (MAXBITS+1) - len;        if (left == 0) break;        if (s->left == 0) {            s->left = s->infun(s->inhow, &(s->in));            if (s->left == 0) longjmp(s->env, 1);       /* out of input */        }        bitbuf = *(s->in)++;        s->left--;        if (left > 8) left = 8;    }    return -9;                          /* ran out of codes */}/* * Given a list of repeated code lengths rep[0..n-1], where each byte is a * count (high four bits + 1) and a code length (low four bits), generate the * list of code lengths.  This compaction reduces the size of the object code. * Then given the list of code lengths length[0..n-1] representing a canonical * Huffman code for n symbols, construct the tables required to decode those * codes.  Those tables are the number of codes of each length, and the symbols * sorted by length, retaining their original order within each length.  The * return value is zero for a complete code set, negative for an over- * subscribed code set, and positive for an incomplete code set.  The tables * can be used if the return value is zero or positive, but they cannot be used * if the return value is negative.  If the return value is zero, it is not * possible for decode() using that table to return an error--any stream of * enough bits will resolve to a symbol.  If the return value is positive, then * it is possible for decode() using that table to return an error for received * codes past the end of the incomplete lengths. */local int construct(struct huffman *h, const unsigned char *rep, int n){    int symbol;         /* current symbol when stepping through length[] */    int len;            /* current length when stepping through h->count[] */    int left;           /* number of possible codes left of current length */    short offs[MAXBITS+1];      /* offsets in symbol table for each length */    short length[256];  /* code lengths */    /* convert compact repeat counts into symbol bit length list */    symbol = 0;    do {        len = *rep++;        left = (len >> 4) + 1;        len &= 15;        do {            length[symbol++] = len;        } while (--left);    } while (--n);    n = symbol;    /* count number of codes of each length */    for (len = 0; len <= MAXBITS; len++)        h->count[len] = 0;    for (symbol = 0; symbol < n; symbol++)        (h->count[length[symbol]])++;   /* assumes lengths are within bounds */    if (h->count[0] == n)               /* no codes! */        return 0;                       /* complete, but decode() will fail */    /* check for an over-subscribed or incomplete set of lengths */    left = 1;                           /* one possible code of zero length */    for (len = 1; len <= MAXBITS; len++) {        left <<= 1;                     /* one more bit, double codes left */        left -= h->count[len];          /* deduct count from possible codes */        if (left < 0) return left;      /* over-subscribed--return negative */    }                                   /* left > 0 means incomplete */    /* generate offsets into symbol table for each length for sorting */    offs[1] = 0;    for (len = 1; len < MAXBITS; len++)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品影音先锋| 亚洲激情自拍视频| 国产一区二区女| 精品国产人成亚洲区| 国产精品系列在线播放| 国产精品视频你懂的| 91亚洲精品一区二区乱码| 一区二区三区视频在线观看| 欧美日韩午夜精品| 日韩中文字幕麻豆| 久久午夜色播影院免费高清| 国产成人精品免费| 成人欧美一区二区三区白人 | 欧美中文字幕一二三区视频| 亚洲成人综合网站| 亚洲精品在线电影| 成人性色生活片免费看爆迷你毛片| 中文无字幕一区二区三区| 91麻豆视频网站| 日韩高清不卡一区二区| www国产成人| 99国产欧美另类久久久精品 | 日韩黄色片在线观看| 欧美成va人片在线观看| 成人app网站| 视频一区二区三区在线| 久久久久久黄色| 欧美图片一区二区三区| 激情小说欧美图片| 亚洲免费观看高清| 精品少妇一区二区三区免费观看| 99免费精品视频| 免费国产亚洲视频| 亚洲色图在线播放| 欧美精品一区二区蜜臀亚洲| 91蜜桃婷婷狠狠久久综合9色| 免费日本视频一区| **性色生活片久久毛片| 日韩一区二区在线看| 色综合天天综合网天天狠天天 | 成人综合在线视频| 亚洲国产精品久久久男人的天堂| 欧美精品一区二区三区蜜桃| 在线免费一区三区| 国产精品中文字幕一区二区三区| 亚洲国产精品视频| 国产精品成人免费精品自在线观看 | 欧美日韩一区不卡| 成人午夜激情片| 激情综合五月天| 天堂成人国产精品一区| 椎名由奈av一区二区三区| 欧美成人福利视频| 51精品久久久久久久蜜臀| 色综合久久久久久久久| 岛国av在线一区| 激情六月婷婷综合| 日本网站在线观看一区二区三区| 亚洲精品一二三四区| 国产精品欧美综合在线| 久久夜色精品国产噜噜av | av电影一区二区| 麻豆成人免费电影| 爽好多水快深点欧美视频| 亚洲日本一区二区三区| 久久精品亚洲国产奇米99| 欧美一级二级在线观看| 欧美日韩精品是欧美日韩精品| 91麻豆精品一区二区三区| 丁香五精品蜜臀久久久久99网站 | 亚洲国产综合色| 亚洲欧美激情视频在线观看一区二区三区| 久久精品亚洲精品国产欧美kt∨| 久久婷婷成人综合色| 精品成人免费观看| 2023国产精华国产精品| 精品国产乱码久久久久久牛牛| 91精品免费在线| 欧美一区二区三区视频免费| 欧美电影一区二区| 欧美一区二区视频在线观看 | 日韩免费视频线观看| 666欧美在线视频| 欧美日韩成人高清| 欧美一级日韩不卡播放免费| 91精品免费在线观看| 精品日韩在线观看| 久久久99久久精品欧美| 中文字幕免费在线观看视频一区| 中文在线一区二区| 亚洲女子a中天字幕| 亚洲电影一级片| 蜜桃视频在线一区| 国产精品1区2区3区| av电影一区二区| 欧美三级乱人伦电影| 91麻豆精品国产自产在线 | 成人国产精品免费观看动漫| 成人动漫中文字幕| 日本国产一区二区| 69堂精品视频| 久久久午夜电影| 亚洲色图欧美偷拍| 亚洲国产日韩一级| 精品写真视频在线观看| 国产福利精品一区二区| 色综合色狠狠天天综合色| 在线看日本不卡| 6080午夜不卡| 中文字幕电影一区| 亚洲自拍偷拍麻豆| 久久国产免费看| 99久久综合色| 欧美成人精品高清在线播放| 亚洲欧洲日韩女同| 首页国产丝袜综合| 成人黄色片在线观看| 91精品国产免费| 中文字幕亚洲在| 蜜桃av噜噜一区二区三区小说| 成人高清免费在线播放| 91麻豆精品国产自产在线观看一区 | 亚洲欧洲日韩一区二区三区| 视频一区视频二区在线观看| 成人av免费在线观看| 51久久夜色精品国产麻豆| 国产精品久久久久久久久免费桃花 | 首页国产欧美日韩丝袜| 国产91丝袜在线播放| 欧美日韩精品一区视频| 中文文精品字幕一区二区| 秋霞av亚洲一区二区三| 色先锋资源久久综合| 亚洲精品一区二区三区99| 亚洲观看高清完整版在线观看| 国产精品香蕉一区二区三区| 337p亚洲精品色噜噜噜| 亚洲日本一区二区三区| 福利一区二区在线| 日韩欧美一二三| 一卡二卡欧美日韩| 国产成人自拍网| 91精选在线观看| 亚洲在线免费播放| 91在线免费视频观看| 久久久国产精品午夜一区ai换脸| 日韩电影在线观看一区| 精品视频免费看| 亚洲欧洲综合另类在线| 成人黄色av电影| 久久久久久日产精品| 久久69国产一区二区蜜臀| 欧美色国产精品| 曰韩精品一区二区| 99精品欧美一区二区三区小说 | 久久精品亚洲一区二区三区浴池 | 国产美女精品在线| 日韩免费观看高清完整版| 日本中文字幕一区二区有限公司| 91极品美女在线| 亚洲视频网在线直播| av爱爱亚洲一区| 一区免费观看视频| 不卡的av电影| 中文字幕欧美一区| 波多野结衣的一区二区三区| 中文字幕中文字幕一区| 岛国av在线一区| 中文字幕在线一区| 不卡一区中文字幕| 亚洲一区在线播放| 91国偷自产一区二区使用方法| 中文字幕一区二区三区四区不卡| 国产成人av一区二区三区在线 | 综合久久久久久| 91麻豆精品一区二区三区| 一区二区在线电影| 欧美午夜电影在线播放| 婷婷中文字幕一区三区| 7777精品伊人久久久大香线蕉的| 蜜桃一区二区三区在线观看| 精品久久久网站| 成人午夜大片免费观看| 亚洲男人都懂的| 欧美伦理影视网| 黑人巨大精品欧美黑白配亚洲| 久久久午夜精品| 91网页版在线| 天堂av在线一区| 久久婷婷国产综合国色天香| 成人午夜免费视频| 亚洲综合另类小说| 欧美α欧美αv大片| 国产91精品免费| 夜夜嗨av一区二区三区| 欧美一区二区视频在线观看 | 日本久久电影网| 免费国产亚洲视频| 中文字幕的久久| 欧美亚洲高清一区二区三区不卡|