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

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

?? unpack.c

?? gz124src.zip is a mini Gzip.
?? C
字號(hào):
/* unpack.c -- decompress files in pack format. * Copyright (C) 1992-1993 Jean-loup Gailly * This is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License, see the file COPYING. */#ifdef RCSIDstatic char rcsid[] = "$Id: unpack.c,v 1.4 1993/06/11 19:25:36 jloup Exp $";#endif#include "tailor.h"#include "gzip.h"#include "crypt.h"#define MIN(a,b) ((a) <= (b) ? (a) : (b))/* The arguments must not have side effects. */#define MAX_BITLEN 25/* Maximum length of Huffman codes. (Minor modifications to the code * would be needed to support 32 bits codes, but pack never generates * more than 24 bits anyway.) */#define LITERALS 256/* Number of literals, excluding the End of Block (EOB) code */#define MAX_PEEK 12/* Maximum number of 'peek' bits used to optimize traversal of the * Huffman tree. */local ulg orig_len;       /* original uncompressed length */local int max_len;        /* maximum bit length of Huffman codes */local uch literal[LITERALS];/* The literal bytes present in the Huffman tree. The EOB code is not * represented. */local int lit_base[MAX_BITLEN+1];/* All literals of a given bit length are contiguous in literal[] and * have contiguous codes. literal[code+lit_base[len]] is the literal * for a code of len bits. */local int leaves [MAX_BITLEN+1]; /* Number of leaves for each bit length */local int parents[MAX_BITLEN+1]; /* Number of parents for each bit length */local int peek_bits; /* Number of peek bits currently used *//* local uch prefix_len[1 << MAX_PEEK]; */#define prefix_len outbuf/* For each bit pattern b of peek_bits bits, prefix_len[b] is the length * of the Huffman code starting with a prefix of b (upper bits), or 0 * if all codes of prefix b have more than peek_bits bits. It is not * necessary to have a huge table (large MAX_PEEK) because most of the * codes encountered in the input stream are short codes (by construction). * So for most codes a single lookup will be necessary. */#if (1<<MAX_PEEK) > OUTBUFSIZ    error cannot overlay prefix_len and outbuf#endiflocal ulg bitbuf;/* Bits are added on the low part of bitbuf and read from the high part. */local int valid;                  /* number of valid bits in bitbuf *//* all bits above the last valid bit are always zero *//* Set code to the next 'bits' input bits without skipping them. code * must be the name of a simple variable and bits must not have side effects. * IN assertions: bits <= 25 (so that we still have room for an extra byte * when valid is only 24), and mask = (1<<bits)-1. */#define look_bits(code,bits,mask) \{ \  while (valid < (bits)) bitbuf = (bitbuf<<8) | (ulg)get_byte(), valid += 8; \  code = (bitbuf >> (valid-(bits))) & (mask); \}/* Skip the given number of bits (after having peeked at them): */#define skip_bits(bits)  (valid -= (bits))#define clear_bitbuf() (valid = 0, bitbuf = 0)/* Local functions */local void read_tree  OF((void));local void build_tree OF((void));/* =========================================================================== * Read the Huffman tree. */local void read_tree(){    int len;  /* bit length */    int base; /* base offset for a sequence of leaves */    int n;    /* Read the original input size, MSB first */    orig_len = 0;    for (n = 1; n <= 4; n++) orig_len = (orig_len << 8) | (ulg)get_byte();    max_len = (int)get_byte(); /* maximum bit length of Huffman codes */    if (max_len > MAX_BITLEN) {	error("invalid compressed data -- Huffman code > 32 bits");    }    /* Get the number of leaves at each bit length */    n = 0;    for (len = 1; len <= max_len; len++) {	leaves[len] = (int)get_byte();	n += leaves[len];    }    if (n > LITERALS) {	error("too many leaves in Huffman tree");    }    Trace((stderr, "orig_len %ld, max_len %d, leaves %d\n",	   orig_len, max_len, n));    /* There are at least 2 and at most 256 leaves of length max_len.     * (Pack arbitrarily rejects empty files and files consisting of     * a single byte even repeated.) To fit the last leaf count in a     * byte, it is offset by 2. However, the last literal is the EOB     * code, and is not transmitted explicitly in the tree, so we must     * adjust here by one only.     */    leaves[max_len]++;    /* Now read the leaves themselves */    base = 0;    for (len = 1; len <= max_len; len++) {	/* Remember where the literals of this length start in literal[] : */	lit_base[len] = base;	/* And read the literals: */	for (n = leaves[len]; n > 0; n--) {	    literal[base++] = (uch)get_byte();	}    }    leaves[max_len]++; /* Now include the EOB code in the Huffman tree */}/* =========================================================================== * Build the Huffman tree and the prefix table. */local void build_tree(){    int nodes = 0; /* number of nodes (parents+leaves) at current bit length */    int len;       /* current bit length */    uch *prefixp;  /* pointer in prefix_len */    for (len = max_len; len >= 1; len--) {	/* The number of parent nodes at this level is half the total	 * number of nodes at parent level:	 */	nodes >>= 1;	parents[len] = nodes;	/* Update lit_base by the appropriate bias to skip the parent nodes	 * (which are not represented in the literal array):	 */	lit_base[len] -= nodes;	/* Restore nodes to be parents+leaves: */	nodes += leaves[len];    }    /* Construct the prefix table, from shortest leaves to longest ones.     * The shortest code is all ones, so we start at the end of the table.     */    peek_bits = MIN(max_len, MAX_PEEK);    prefixp = &prefix_len[1<<peek_bits];    for (len = 1; len <= peek_bits; len++) {	int prefixes = leaves[len] << (peek_bits-len); /* may be 0 */	while (prefixes--) *--prefixp = (uch)len;    }    /* The length of all other codes is unknown: */    while (prefixp > prefix_len) *--prefixp = 0;}/* =========================================================================== * Unpack in to out.  This routine does not support the old pack format * with magic header \037\037. * * IN assertions: the buffer inbuf contains already the beginning of *   the compressed data, from offsets inptr to insize-1 included. *   The magic header has already been checked. The output buffer is cleared. */int unpack(in, out)    int in, out;            /* input and output file descriptors */{    int len;                /* Bit length of current code */    unsigned eob;           /* End Of Block code */    register unsigned peek; /* lookahead bits */    unsigned peek_mask;     /* Mask for peek_bits bits */    ifd = in;    ofd = out;    read_tree();     /* Read the Huffman tree */    build_tree();    /* Build the prefix table */    clear_bitbuf();  /* Initialize bit input */    peek_mask = (1<<peek_bits)-1;    /* The eob code is the largest code among all leaves of maximal length: */    eob = leaves[max_len]-1;    Trace((stderr, "eob %d %x\n", max_len, eob));    /* Decode the input data: */    for (;;) {	/* Since eob is the longest code and not shorter than max_len,         * we can peek at max_len bits without having the risk of reading         * beyond the end of file.	 */	look_bits(peek, peek_bits, peek_mask);	len = prefix_len[peek];	if (len > 0) {	    peek >>= peek_bits - len; /* discard the extra bits */	} else {	    /* Code of more than peek_bits bits, we must traverse the tree */	    ulg mask = peek_mask;	    len = peek_bits;	    do {                len++, mask = (mask<<1)+1;		look_bits(peek, len, mask);	    } while (peek < (unsigned)parents[len]);	    /* loop as long as peek is a parent node */	}	/* At this point, peek is the next complete code, of len bits */	if (peek == eob && len == max_len) break; /* end of file? */	put_ubyte(literal[peek+lit_base[len]]);	Tracev((stderr,"%02d %04x %c\n", len, peek,		literal[peek+lit_base[len]]));	skip_bits(len);    } /* for (;;) */    flush_window();    Trace((stderr, "bytes_out %ld\n", bytes_out));    if (orig_len != (ulg)bytes_out) {	error("invalid compressed data--length error");    }    return OK;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲理论在线观看| 一本一本久久a久久精品综合麻豆| 欧美日韩日日骚| 亚洲图片欧美综合| 日韩午夜激情av| 国产一区二区三区久久悠悠色av| 久久综合九色综合欧美就去吻| 国产一区二区女| 中文字幕一区二区三区在线播放 | 亚洲精品视频一区二区| 色老头久久综合| 日韩二区在线观看| 国产欧美日韩视频在线观看| 成人黄色网址在线观看| 亚洲综合另类小说| 欧美精品一区视频| 91丨九色丨蝌蚪富婆spa| 日日夜夜精品视频天天综合网| 欧美精品一区二区三区在线| av男人天堂一区| 日韩高清在线不卡| 国产视频一区二区在线| 欧美最新大片在线看 | 国产精品2024| 国产精品人妖ts系列视频| 欧美性视频一区二区三区| 黄色小说综合网站| 亚洲精品国产无套在线观| 欧美大片在线观看一区| www.综合网.com| 秋霞午夜鲁丝一区二区老狼| 中文字幕电影一区| 欧美精品日韩精品| av福利精品导航| 六月婷婷色综合| 亚洲综合一区二区| 国产日本一区二区| 欧美裸体一区二区三区| 大胆亚洲人体视频| 久久99久久99精品免视看婷婷| 中文字幕亚洲欧美在线不卡| 欧美成人精品高清在线播放| 欧美亚洲综合色| 国产美女精品在线| 日韩电影在线免费看| 亚洲人成精品久久久久| 久久综合一区二区| 制服丝袜日韩国产| 在线视频一区二区三区| 成人一级片网址| 韩日av一区二区| 日韩**一区毛片| 亚洲地区一二三色| 日韩毛片精品高清免费| 久久网站热最新地址| 欧美一级片在线| 欧美放荡的少妇| 欧美日韩免费不卡视频一区二区三区| 风间由美一区二区三区在线观看| 美女诱惑一区二区| 午夜精品影院在线观看| 亚洲日本va午夜在线影院| 久久久亚洲欧洲日产国码αv| 欧美日韩精品一区二区三区蜜桃| 91麻豆免费视频| 99久久综合99久久综合网站| 国产成人av一区二区三区在线| 美女www一区二区| 蜜桃精品在线观看| 蜜臀va亚洲va欧美va天堂| 性感美女极品91精品| 一区二区三区高清| 一区二区三区在线免费| 亚洲嫩草精品久久| 亚洲精品成a人| 亚洲一区二区在线观看视频| 亚洲美女在线一区| 亚洲精品成人少妇| 亚洲一区二区影院| 日本欧美一区二区三区乱码 | 综合欧美亚洲日本| 亚洲日穴在线视频| 亚洲猫色日本管| 夜夜嗨av一区二区三区网页| 玉足女爽爽91| 五月天一区二区| 日韩av中文字幕一区二区三区| 三级影片在线观看欧美日韩一区二区 | 播五月开心婷婷综合| 盗摄精品av一区二区三区| 91在线精品一区二区三区| 99re热这里只有精品视频| 日本精品一区二区三区四区的功能| 精品视频在线看| 91 com成人网| 久久亚洲综合色| 亚洲日本在线看| 日一区二区三区| 国产成人免费视频网站高清观看视频| 岛国精品在线播放| 欧美三级日韩三级| 日韩精品一区二区三区蜜臀| 久久女同精品一区二区| 中文字幕av一区二区三区免费看| 亚洲人成7777| 久久国产乱子精品免费女| 国产精品1区二区.| 欧美亚洲综合另类| 欧美成人一区二区| 1000部国产精品成人观看| 午夜精品久久久久久久| 狠狠久久亚洲欧美| 色婷婷久久综合| 日韩欧美国产1| 中文字幕日韩一区二区| 午夜精品免费在线| 国产成人av网站| 欧美日韩亚洲综合在线| 久久综合久久综合久久| 亚洲精品免费一二三区| 欧美a一区二区| 91老司机福利 在线| 日韩欧美一二三| 亚洲天堂2014| 国产一区二区三区电影在线观看| 色域天天综合网| 久久女同性恋中文字幕| 午夜日韩在线电影| 99久久久国产精品| 久久影院视频免费| 日韩国产一区二| 色综合久久久久| 久久久高清一区二区三区| 亚洲国产成人va在线观看天堂| 国产自产v一区二区三区c| 欧美三级日本三级少妇99| 中文字幕一区二区三| 国产在线乱码一区二区三区| 欧美日韩一区三区四区| 亚洲日本丝袜连裤袜办公室| 国产精品一区二区免费不卡 | 91看片淫黄大片一级| 精品国免费一区二区三区| 亚洲国产毛片aaaaa无费看| 成人午夜av在线| 久久综合色8888| 老司机免费视频一区二区 | 色婷婷av久久久久久久| 欧美激情一区二区在线| 精品在线播放免费| 欧美色男人天堂| 亚洲曰韩产成在线| 色综合天天综合狠狠| 日本一区二区三级电影在线观看| 卡一卡二国产精品| 欧美精品在线观看一区二区| 亚洲精品国产视频| a美女胸又www黄视频久久| 国产亚洲一本大道中文在线| 美日韩黄色大片| 欧美大片在线观看| 裸体健美xxxx欧美裸体表演| 欧美一区二区三区四区久久| 亚洲超碰精品一区二区| 欧美乱熟臀69xxxxxx| 午夜精彩视频在线观看不卡| 欧美三级电影网站| 亚洲妇熟xx妇色黄| 欧美日韩午夜在线| 丝袜美腿一区二区三区| 8x福利精品第一导航| 蜜臀av一区二区在线免费观看| 欧美一区二区黄色| 精品一区二区日韩| 久久久久国产一区二区三区四区| 国产乱一区二区| 国产精品视频你懂的| 成人爱爱电影网址| 亚洲免费资源在线播放| 欧洲精品一区二区| 婷婷成人综合网| 欧美精品一区二区久久婷婷| 国产精品一二三四五| 国产精品人人做人人爽人人添| 99久久精品久久久久久清纯| 伊人开心综合网| 欧美精品一级二级三级| 久久69国产一区二区蜜臀| 久久日一线二线三线suv| 成人丝袜18视频在线观看| 亚洲丝袜美腿综合| 欧美精品乱码久久久久久| 精品一区二区三区视频在线观看| 26uuu精品一区二区| 成人性生交大片免费看视频在线| 亚洲男同性恋视频| 日韩一级精品视频在线观看| 国产乱子伦视频一区二区三区| 国产精品久久久久久妇女6080| 在线视频一区二区三|