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

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

?? zdeflate.cpp

?? 加密解密算法
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
	   } while (*++scan == *++match && *++scan == *++match &&
				*++scan == *++match && *++scan == *++match &&
				*++scan == *++match && *++scan == *++match &&
				*++scan == *++match && *++scan == *++match &&
				scan < strend);

	   len = MAX_MATCH - (int)(strend - scan);
	   scan = strend - MAX_MATCH;

#endif /* UNALIGNED_OK */

	   if (len > best_len) {
		   match_start = cur_match;
		   best_len = len;
		   if (len >= nice_match) break;
#ifdef UNALIGNED_OK
		   scan_end = *(word16*)(scan+best_len-1);
#else
		   scan_end1  = scan[best_len-1];
		   scan_end   = scan[best_len];
#endif
	   }
   } while ((cur_match = prev[cur_match & WMASK]) > limit
			&& --chain_length != 0);

   return best_len;
}
#endif /* ASMV */

#ifdef DEBUG
/* Check that the match at match_start is indeed a match. */
static void check_match(start, match, length)
IPos start, match;
int length;
{
   if (memcmp((char*)window + match, (char*)window + start, length) != 0)
   {
	  fprintf(stderr, " start %d, match %d, length %d\n",
		 start, match, length);
	  error("invalid match");
   }
   if (verbose > 1) {
	  fprintf(stderr,"\\[%d,%d]", start-match, length);
	  do { putc(window[start++], stderr); } while (--length != 0);
   }
}
#else
#  define check_match(start, match, length)
#endif

/* Add a block of data into the window. Updates strstart and lookahead.
 * IN assertion: lookahead < MIN_LOOKAHEAD.
 * Note: call with either lookahead == 0 or length == 0 is valid
 */
unsigned Deflator::fill_window(const byte *buffer, unsigned int length)
{
   register unsigned n, m;
   unsigned more = length;

   /* Amount of free space at the end of the window. */
   if (WINDOW_SIZE - lookahead - strstart < more) {
	  more = (unsigned)(WINDOW_SIZE - lookahead - strstart);
   }
   /* If the window is almost full and there is insufficient lookahead,
	* move the upper half to the lower one to make room in the upper half.
	*/
   if (strstart >= (unsigned)WSIZE+MAX_DIST) {
	  memcpy(window, window+WSIZE, WSIZE);
	  match_start -= WSIZE;
	  strstart    -= WSIZE; /* we now have strstart >= MAX_DIST: */

	  block_start -= (long) WSIZE;

	  for (n = 0; n < (unsigned)HASH_SIZE; n++) {
		 m = head[n];
		 head[n] = (Pos)(m >= (unsigned)WSIZE ? m-WSIZE : NIL);
	  }
	  for (n = 0; n < (unsigned)WSIZE; n++) {
		 m = prev[n];
		 prev[n] = (Pos)(m >= (unsigned)WSIZE ? m-WSIZE : NIL);
		 /* If n is not on any hash chain, prev[n] is garbage but
			its value will never be used. */
	  }
	  if ((more += WSIZE) > length) more = length;
   }
   if (more) {
	  memcpy((byte*)window+strstart+lookahead, buffer, more);
	  lookahead += more;
   }
   return more;
}

/* Flush the current block, with given end-of-file flag.
   IN assertion: strstart is set to the end of the current match. */
#define FLUSH_BLOCK(eof) flush_block(block_start >= 0L ?\
		window+block_start : \
		(byte *)0, (long)strstart - block_start, (eof))

/* Processes a new input block.
 * This function does not perform lazy evaluationof matches and inserts
 * new strings in the dictionary only for unmatched strings or for short
 * matches. It is used only for the fast compression options. */
int Deflator::fast_deflate(const byte *buffer, unsigned int length)
{
   IPos hash_head; /* head of the hash chain */
   int flush;      /* set if current block must be flushed */
   unsigned accepted = 0;

   do {
	  /* Make sure that we always have enough lookahead, except
	   * at the end of the input file. We need MAX_MATCH bytes
	   * for the next match, plus MIN_MATCH bytes to insert the
	   * string following the next match. */
	  accepted += fill_window(buffer+accepted, length-accepted);
	  if (lookahead <= minlookahead) break;
	  if (!uptodate) {
		 match_length = 0; init_hash(); uptodate = 1;
	  }
	  while (lookahead > minlookahead) {
		 /* Insert the string window[strstart .. strstart+2] in the
		  * dictionary, and set hash_head to the head of the hash chain:
		  */
		 INSERT_STRING(strstart, hash_head);

		 /* Find the longest match, discarding those <= prev_length.
		  * At this point we have always match_length < MIN_MATCH */
		 if (hash_head != NIL && strstart - hash_head <= MAX_DIST) {
			/* To simplify the code, we prevent matches with the string
			 * of window index 0 (in particular we have to avoid a match
			 * of the string with itself at the start of the input file).
			 */
			match_length = longest_match(hash_head);
			/* longest_match() sets match_start */
			if (match_length > lookahead) match_length = lookahead;
		 }
		 if (match_length >= MIN_MATCH) {
			check_match(strstart, match_start, match_length);

			flush = ct_tally(strstart-match_start, match_length - MIN_MATCH);

			lookahead -= match_length;

			/* Insert new strings in the hash table only if the match length
			 * is not too large. This saves time but degrades compression.
			 */
			if (match_length <= max_insert_length) {
				match_length--; /* string at strstart already in hash table */
				do {
					strstart++;
					INSERT_STRING(strstart, hash_head);
					/* strstart never exceeds WSIZE-MAX_MATCH, so there are
					 * always MIN_MATCH bytes ahead. If lookahead < MIN_MATCH
					 * these bytes are garbage, but it does not matter since
					 * the next lookahead bytes will be emitted as literals.
					 */
				} while (--match_length != 0);
				strstart++;
			} else {
				strstart += match_length;
				match_length = 0;
				ins_h = window[strstart];
				UPDATE_HASH(ins_h, window[strstart+1]);
/*
#if MIN_MATCH != 3
				Call UPDATE_HASH() MIN_MATCH-3 more times
#endif
*/
			}
		 } else {
			/* No match, output a literal byte */
//            Tracevv((stderr,"%c",window[strstart]));
			flush = ct_tally (0, window[strstart]);
			lookahead--;
			strstart++;
		 }
		 if (flush) {
			FLUSH_BLOCK(0);
			block_start = strstart;
		 }
	  }
   } while (accepted < length);
   if (!minlookahead) {/* eof achieved */
	  FLUSH_BLOCK(1);
   }
   return accepted;
}

/* Same as above, but achieves better compression. We use a lazy
 * evaluation for matches: a match is finally adopted only if there is
 * no better match at the next window position.  */
int Deflator::lazy_deflate(const byte *buffer, unsigned int length)
{
   IPos hash_head;          /* head of hash chain */
   IPos prev_match;         /* previous match */
   int flush;               /* set if current block must be flushed */
   register unsigned ml = match_length; /* length of best match */
#ifdef DEBUG
   extern word32 isize;        /* byte length of input file, for debug only */
#endif
   unsigned accepted = 0;

   /* Process the input block. */
   do {
	  /* Make sure that we always have enough lookahead, except
	   * at the end of the input file. We need MAX_MATCH bytes
	   * for the next match, plus MIN_MATCH bytes to insert the
	   * string following the next match. */
	  accepted += fill_window(buffer+accepted, length-accepted);
	  if (lookahead <= minlookahead) break;
	  if (!uptodate) {
		 ml = MIN_MATCH-1; /* length of best match */
		 init_hash();
		 uptodate = 1;
	  }
	  while (lookahead > minlookahead) {
		 INSERT_STRING(strstart, hash_head);

		 /* Find the longest match, discarding those <= prev_length. */
		 prev_length = ml, prev_match = match_start;
		 ml = MIN_MATCH-1;

		 if (hash_head != NIL && prev_length < max_lazy_match &&
			 strstart - hash_head <= MAX_DIST) {
			/* To simplify the code, we prevent matches with the string
			 * of window index 0 (in particular we have to avoid a match
			 * of the string with itself at the start of the input file).
			 */
			ml = longest_match (hash_head);
			/* longest_match() sets match_start */
			if (ml > lookahead) ml = lookahead;

			/* Ignore a length 3 match if it is too distant: */
			if (ml == MIN_MATCH && strstart-match_start > TOO_FAR){
			   /* If prev_match is also MIN_MATCH, match_start is garbage
				  but we will ignore the current match anyway. */
			   ml--;
			}
		 }
		 /* If there was a match at the previous step and the current
			match is not better, output the previous match: */
		 if (prev_length >= MIN_MATCH && ml <= prev_length) {

			check_match(strstart-1, prev_match, prev_length);

			flush = ct_tally(strstart-1-prev_match, prev_length - MIN_MATCH);

			/* Insert in hash table all strings up to the end of the match.
			 * strstart-1 and strstart are already inserted.
			 */
			lookahead -= prev_length-1;
			prev_length -= 2;
			do {
			   strstart++;
			   INSERT_STRING(strstart, hash_head);
			   /* strstart never exceeds WSIZE-MAX_MATCH, so there are
				* always MIN_MATCH bytes ahead. If lookahead < MIN_MATCH
				* these bytes are garbage, but it does not matter since the
				* next lookahead bytes will always be emitted as literals.
				*/
			} while (--prev_length != 0);
			match_available = 0;
			ml = MIN_MATCH-1;
			strstart++;
			if (flush) {
			   FLUSH_BLOCK(0);
			   block_start = strstart;
			}

		 } else if (match_available) {
			/* If there was no match at the previous position, output a
			 * single literal. If there was a match but the current match
			 * is longer, truncate the previous match to a single literal.
			 */
//            Tracevv((stderr,"%c",window[strstart-1]));
			if (ct_tally (0, window[strstart-1])) {
				FLUSH_BLOCK(0), block_start = strstart;
			}
			strstart++;
			lookahead--;
		 } else {
			/* There is no previous match to compare with,
			   wait for the next step to decide. */
			match_available = 1;
			strstart++;
			lookahead--;
		 }
//         assert(strstart <= isize && lookahead <= isize);
	  }
   } while (accepted < length);
   if (!minlookahead) {/* eof achieved */
	  if (match_available) ct_tally (0, window[strstart-1]);
	  FLUSH_BLOCK(1);
   }
   match_length = ml;
   return accepted;
}

NAMESPACE_END

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av网站在线观看| 国产人成亚洲第一网站在线播放| 精品国产青草久久久久福利| 午夜国产不卡在线观看视频| 国产精品2024| 欧美一二三区在线| 日韩av电影免费观看高清完整版 | 成人国产免费视频| 久久在线观看免费| 精品一区二区三区免费观看| 欧美r级在线观看| 精品一区二区在线免费观看| 日韩精品一区二区三区三区免费| 免费日本视频一区| 日韩美女视频在线| 国产一区美女在线| 国产欧美视频一区二区| 国产v综合v亚洲欧| 18成人在线视频| 成人看片黄a免费看在线| 日韩影视精彩在线| 欧美一区二区精品在线| 秋霞电影一区二区| 欧美精品一区二区高清在线观看 | 专区另类欧美日韩| 91免费视频网| 欧美国产欧美综合| 99re这里只有精品首页| 一区二区三区四区亚洲| 色哟哟欧美精品| 日韩专区欧美专区| 精品精品国产高清a毛片牛牛| 老司机免费视频一区二区三区| 欧美精品日韩综合在线| 春色校园综合激情亚洲| 亚洲综合区在线| 日韩久久精品一区| 99久久精品国产网站| 麻豆国产精品一区二区三区| 国产亚洲欧美日韩在线一区| 91片黄在线观看| 五月天亚洲精品| 日韩欧美成人一区二区| 欧美在线高清视频| 黑人精品欧美一区二区蜜桃| 中文字幕亚洲一区二区av在线| 欧美午夜精品电影| 成人午夜激情片| 日韩av网站在线观看| 国产精品你懂的| 欧美一三区三区四区免费在线看| 91麻豆国产福利精品| 狠狠色丁香婷婷综合| 亚洲自拍另类综合| 国产性色一区二区| 欧美亚洲禁片免费| 成人午夜视频网站| 美国欧美日韩国产在线播放| 亚洲欧美日韩中文字幕一区二区三区 | 久久九九全国免费| 色狠狠综合天天综合综合| 久久精品理论片| 性久久久久久久久久久久| 亚洲国产成人在线| 精品日韩99亚洲| 久久综合九色综合97婷婷女人 | 久久久国产午夜精品| 日韩免费电影网站| 日韩视频在线一区二区| 欧美久久一二三四区| 欧美群妇大交群中文字幕| 在线观看91视频| 国产精品国产三级国产专播品爱网| 精品国产乱码久久久久久影片| 欧美一级免费观看| 欧美一卡二卡在线| 欧美v国产在线一区二区三区| 欧美成人a在线| 欧美xingq一区二区| 久久综合九色综合欧美98| www精品美女久久久tv| 久久久久国产免费免费| 国产偷v国产偷v亚洲高清| 亚洲国产精品成人久久综合一区| 日本一区二区成人| 成人免费视频在线观看| 亚洲欧美日本在线| 亚洲.国产.中文慕字在线| 视频一区二区三区在线| 美女视频第一区二区三区免费观看网站| 日本午夜精品一区二区三区电影 | 性久久久久久久| 美女尤物国产一区| 国产精品一区二区久久不卡| 丁香六月综合激情| 日本久久电影网| 制服丝袜日韩国产| 国产性做久久久久久| 18欧美乱大交hd1984| 视频一区二区中文字幕| 国产最新精品免费| 99国产精品国产精品久久| 欧美日韩一区小说| 久久这里都是精品| 亚洲激情六月丁香| 日本欧美加勒比视频| 成人午夜av在线| 欧美精选午夜久久久乱码6080| 日韩精品一区二区三区视频| 中文字幕亚洲在| 免费成人性网站| www.在线成人| 欧美一级片免费看| 国产精品久久毛片av大全日韩| 一区二区三区在线不卡| 精品一区二区三区影院在线午夜 | 欧美国产综合色视频| 亚洲黄色片在线观看| 韩国av一区二区| 在线看国产日韩| 久久九九久久九九| 午夜精品一区二区三区免费视频| 国产一区二区三区在线观看免费视频 | 国产乱码精品1区2区3区| 91免费视频网址| 久久免费国产精品| 亚洲成人免费看| 波多野结衣精品在线| 亚洲国产精品人人做人人爽| 久久精品二区亚洲w码| 91黄色免费网站| 欧美激情一二三区| 日本视频一区二区| 色网站国产精品| 国产情人综合久久777777| 视频一区二区国产| 91免费版在线| 国产精品视频看| 国产一区二区三区免费观看 | 欧美电视剧免费全集观看 | 免费人成网站在线观看欧美高清| 99久久精品国产一区| 久久免费视频一区| 热久久免费视频| 欧美日韩日日夜夜| 亚洲伦理在线精品| 成人av午夜影院| 中文字幕不卡在线| 国产大片一区二区| 久久九九国产精品| 国产精品原创巨作av| 精品免费国产一区二区三区四区| 亚洲成人久久影院| 欧美精品在线视频| 亚洲第一久久影院| 欧美探花视频资源| 亚洲二区在线观看| 欧美精品自拍偷拍动漫精品| 午夜久久久影院| 91精品国产综合久久福利软件| 午夜国产不卡在线观看视频| 欧美午夜精品久久久久久超碰| 亚洲一线二线三线久久久| 在线视频你懂得一区二区三区| 亚洲视频香蕉人妖| 色999日韩国产欧美一区二区| |精品福利一区二区三区| 91影视在线播放| 亚洲综合成人在线| 欧美日韩一区二区三区四区| 亚洲午夜视频在线| 7777精品伊人久久久大香线蕉| 亚洲成人免费在线观看| 在线成人午夜影院| 另类人妖一区二区av| 久久免费的精品国产v∧| 丁香婷婷深情五月亚洲| 日韩毛片在线免费观看| 91美女在线观看| 亚洲国产综合色| 69堂精品视频| 国产呦精品一区二区三区网站| 国产日产精品一区| 97se亚洲国产综合自在线不卡| 亚洲特黄一级片| 欧美日韩视频一区二区| 男女视频一区二区| 久久久久久久久蜜桃| jizz一区二区| 天天亚洲美女在线视频| 亚洲精品在线网站| 99久久精品国产毛片| 午夜不卡av在线| 2023国产精品| 91亚洲精品乱码久久久久久蜜桃| 亚洲成国产人片在线观看| 欧美xxx久久| 色综合久久天天综合网| 美女在线视频一区| 中文字幕一区二区三区色视频|