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

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

?? unpack.c

?? tftp client sorser code,Please download it and compolie it ,byebye
?? C
字號:
/* 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;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩电影在线| 久久精品欧美日韩精品| 国产亚洲成年网址在线观看| 亚洲色图欧美偷拍| 捆绑变态av一区二区三区| 91在线观看地址| 久久免费视频一区| 麻豆免费精品视频| 欧美精选午夜久久久乱码6080| 国产精品久久久久国产精品日日| 青娱乐精品视频在线| 在线看一区二区| 亚洲婷婷综合久久一本伊一区| 国内精品自线一区二区三区视频| 欧美人动与zoxxxx乱| 一区二区不卡在线播放| 色综合久久六月婷婷中文字幕| 欧美国产禁国产网站cc| 国产一区二区网址| 日韩一区二区三区观看| 日韩成人免费看| 欧美一区永久视频免费观看| 偷窥少妇高潮呻吟av久久免费| 色94色欧美sute亚洲13| 亚洲激情一二三区| 欧美丝袜丝交足nylons图片| 夜夜精品浪潮av一区二区三区| 色狠狠桃花综合| 亚洲精品国久久99热| 91成人在线精品| 亚洲影院在线观看| 欧美久久久一区| 免费看日韩a级影片| 欧美一区二区三区成人| 麻豆国产一区二区| 久久久久久久久久久久久夜| 国产精品一区二区久激情瑜伽 | 一区二区三区四区高清精品免费观看| bt欧美亚洲午夜电影天堂| 国产精品午夜春色av| av不卡免费在线观看| 亚洲精品国产视频| 欧美日韩在线播放三区四区| 午夜私人影院久久久久| 欧美成人一区二区三区片免费| 精品一区二区免费在线观看| 国产亚洲午夜高清国产拍精品| 粉嫩aⅴ一区二区三区四区| 日韩理论片中文av| 欧美男男青年gay1069videost| 麻豆精品新av中文字幕| 久久女同性恋中文字幕| 91色porny在线视频| 亚洲综合一二区| 欧美电影免费观看完整版| 国产激情91久久精品导航| 亚洲精品第一国产综合野| 91精品国模一区二区三区| 国产xxx精品视频大全| 一区二区三区av电影| 亚洲欧美一区二区三区国产精品| 色综合久久中文综合久久牛| 午夜精品福利在线| 国产午夜精品一区二区| 欧洲精品一区二区三区在线观看| 奇米在线7777在线精品 | 91精品午夜视频| 成人国产精品免费网站| 偷偷要91色婷婷| 国产精品每日更新在线播放网址 | 色一区在线观看| 美国av一区二区| 亚洲在线一区二区三区| 久久女同互慰一区二区三区| 欧美午夜影院一区| 国产成人啪免费观看软件| 亚洲成av人片一区二区| 中文字幕在线一区免费| 日韩一级大片在线观看| 色吧成人激情小说| 成人中文字幕在线| 久久国产成人午夜av影院| 亚洲综合成人网| 国产精品久久99| 国产亚洲自拍一区| 国内成+人亚洲+欧美+综合在线| 成人午夜av在线| 久久久精品tv| 日本伦理一区二区| 久久精品国产在热久久| 国产精品色在线观看| 337p亚洲精品色噜噜| 成人av网站在线| 理论电影国产精品| 五月激情丁香一区二区三区| 日韩一区二区免费在线观看| 色欧美片视频在线观看 | hitomi一区二区三区精品| 麻豆精品新av中文字幕| 午夜在线电影亚洲一区| 亚洲综合色成人| 麻豆视频一区二区| 亚洲综合一区二区三区| 欧美日本精品一区二区三区| 91国偷自产一区二区使用方法| 国产a精品视频| 国产河南妇女毛片精品久久久 | 日韩区在线观看| 6080午夜不卡| 日韩视频永久免费| 欧美成人艳星乳罩| 精品国产精品网麻豆系列| 日韩一区二区三区精品视频| 日韩一区二区在线看片| 日韩欧美在线网站| 26uuu亚洲综合色| 久久色中文字幕| 国产日韩欧美制服另类| 久久久99精品免费观看| 国产精品色眯眯| 亚洲免费观看高清完整版在线观看 | 高清不卡在线观看| 成人天堂资源www在线| www.66久久| 日本精品一级二级| 欧美精品视频www在线观看| 91精品国产色综合久久不卡蜜臀| 色婷婷久久久综合中文字幕| 在线看一区二区| 欧美一级精品在线| 国产情人综合久久777777| 国产精品狼人久久影院观看方式| 国产精品国产馆在线真实露脸| 亚洲欧美日韩久久| 奇米色一区二区| 国产成人亚洲精品狼色在线 | 国产成人精品影院| 欧美日韩中文一区| 91成人国产精品| 在线不卡中文字幕播放| 日韩一区二区电影网| 2023国产精华国产精品| 亚洲色图欧洲色图婷婷| 成人网在线播放| 麻豆一区二区99久久久久| 国产成人精品三级麻豆| 91高清在线观看| 久久久综合视频| 亚洲人成在线播放网站岛国| 日本欧美加勒比视频| 波多野结衣精品在线| 欧美日本一区二区| 国产精品久久久久影院亚瑟| 亚洲第一在线综合网站| 大白屁股一区二区视频| 91麻豆精品国产91久久久资源速度 | 精品久久久久久久久久久院品网| 欧美刺激脚交jootjob| ...av二区三区久久精品| 蜜臀久久99精品久久久久久9| 成人在线视频一区| 亚洲欧美日韩久久精品| 91久久精品一区二区三| 精品国产制服丝袜高跟| 婷婷综合另类小说色区| 欧美绝品在线观看成人午夜影视| 亚洲蜜桃精久久久久久久| 精品在线播放午夜| 狠狠色狠狠色合久久伊人| 国产精品中文有码| 欧美精品日韩精品| 国产精品国产三级国产a| 精品一区二区三区免费观看| 欧美色爱综合网| 亚洲视频资源在线| 国产成人免费视| 欧美一级片在线观看| 亚洲夂夂婷婷色拍ww47| thepron国产精品| 久久蜜桃一区二区| 捆绑变态av一区二区三区| 欧美色区777第一页| 亚洲精品中文在线观看| 国产91精品一区二区麻豆网站| 欧美一区二区三区的| 亚洲va中文字幕| 欧美在线一二三四区| 亚洲精品成a人| 91麻豆国产福利精品| 久久久久国产精品麻豆ai换脸| 色婷婷国产精品久久包臀| 色综合久久久久综合体| 精品国精品国产尤物美女| 日韩高清在线不卡| 91精品国产乱| 日韩精彩视频在线观看| 欧美国产精品一区二区三区| 国产精品99久久久久久似苏梦涵 | 精品视频在线免费看| 亚洲一二三四区不卡|