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

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

?? zdeflate.cpp

?? 300個加解密的集合程序
?? 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一区二区三区免费野_久草精品视频
国产成+人+日韩+欧美+亚洲| 精品国产91乱码一区二区三区| 欧美精品日日鲁夜夜添| 久久久久久久久蜜桃| 亚洲欧美激情在线| 国产一区二区美女| 色香蕉成人二区免费| 久久久亚洲午夜电影| 偷窥国产亚洲免费视频| 99热这里都是精品| 久久精品免费在线观看| 人人爽香蕉精品| 欧美亚洲综合网| 亚洲欧美在线观看| 国产风韵犹存在线视精品| 日韩一区二区在线观看视频 | 五月综合激情日本mⅴ| 成人免费视频caoporn| 欧美第一区第二区| 日韩精品乱码av一区二区| 欧美丝袜第三区| 亚洲免费观看在线观看| 91在线精品一区二区三区| 久久久99精品久久| 国产老女人精品毛片久久| 日韩欧美高清dvd碟片| 亚洲福利视频导航| 欧美高清视频一二三区| 亚洲一区免费在线观看| 在线免费观看一区| 亚洲国产视频网站| 欧美理论电影在线| 手机精品视频在线观看| 91精品久久久久久久99蜜桃| 午夜精品成人在线视频| 欧美顶级少妇做爰| 免费观看久久久4p| 久久青草欧美一区二区三区| 国产麻豆视频一区二区| 久久精品视频免费| 91丨九色丨蝌蚪富婆spa| 一区二区中文字幕在线| 日本高清不卡在线观看| 亚洲国产精品嫩草影院| 欧美一区二区视频在线观看2022 | 欧美日韩你懂得| 日韩激情视频在线观看| 日韩三级免费观看| 国产在线观看免费一区| 中文字幕高清不卡| 色琪琪一区二区三区亚洲区| 亚洲一区在线观看网站| 欧美一级黄色录像| 国产成人av资源| 亚洲精品国产一区二区精华液| 欧美性色黄大片| 国产做a爰片久久毛片| 国产精品久久久久久久浪潮网站 | 亚洲伦在线观看| 欧美精品日韩一本| 韩日av一区二区| 亚洲天天做日日做天天谢日日欢| 欧美视频你懂的| 韩国欧美一区二区| 亚洲色欲色欲www| 欧美一区二区三区成人| 成人夜色视频网站在线观看| 亚洲一区精品在线| 久久久久久久久蜜桃| 欧美日韩色综合| 成人一区二区三区| 蜜桃久久av一区| 亚洲美女免费在线| 久久久久久久精| 欧美日韩激情一区二区三区| 国产乱码字幕精品高清av| 亚洲综合视频在线观看| 久久久久久亚洲综合影院红桃| 在线视频一区二区三| 国产精华液一区二区三区| 亚洲va在线va天堂| 国产精品家庭影院| 精品国产一区二区三区忘忧草| 91老师片黄在线观看| 国产一区二区三区在线观看精品| 亚洲国产精品嫩草影院| 国产精品毛片久久久久久久| 日韩限制级电影在线观看| 91极品美女在线| 国产91在线看| 黄色资源网久久资源365| 亚洲一区二区三区中文字幕| 国产精品免费视频观看| 久久色.com| 日韩精品中文字幕在线一区| 欧美日韩视频在线一区二区| 91黄色激情网站| 91麻豆高清视频| 成人一区二区视频| 成人综合在线观看| 国产综合色产在线精品| 久久电影网电视剧免费观看| 天天综合天天综合色| 亚洲国产精品久久人人爱蜜臀| 综合亚洲深深色噜噜狠狠网站| 国产亚洲精品aa午夜观看| 欧美xxx久久| 精品成a人在线观看| 日韩一区二区免费在线电影| 欧美久久久久久蜜桃| 欧美性大战久久久久久久 | 国产成人av影院| 国产一区二区视频在线| 九九**精品视频免费播放| 日本伊人午夜精品| 蜜臀久久99精品久久久久宅男 | 国产98色在线|日韩| 国产成人精品一区二| 风间由美一区二区三区在线观看 | 一本到高清视频免费精品| 91免费小视频| 欧美亚洲一区三区| 欧美人牲a欧美精品| 欧美高清hd18日本| 日韩午夜电影av| 亚洲精品一线二线三线无人区| 久久综合九色综合久久久精品综合| 日韩欧美三级在线| 国产欧美日韩激情| 亚洲码国产岛国毛片在线| 日韩成人免费电影| 国产一区美女在线| 成人av电影在线| 在线观看日韩电影| 日韩欧美国产综合一区 | 成人国产精品免费观看| 色婷婷一区二区| 欧美精品一二三四| 久久久精品2019中文字幕之3| 中文一区一区三区高中清不卡| 亚洲图片另类小说| 日韩高清在线电影| 国产一区二区成人久久免费影院| 成人免费看的视频| 欧美日韩亚洲不卡| 久久丝袜美腿综合| 亚洲综合一二区| 国产一区二区视频在线播放| 91猫先生在线| 精品少妇一区二区三区| 国产精品国产成人国产三级| 午夜精品成人在线| 成人av电影在线| 日韩欧美国产午夜精品| 18涩涩午夜精品.www| 免费视频最近日韩| 99视频精品在线| 精品久久久久久久久久久久久久久| 中文字幕在线一区二区三区| 日韩国产欧美在线观看| 粉嫩aⅴ一区二区三区四区五区 | 国产精品丝袜在线| 日韩精品视频网| 91亚洲精品久久久蜜桃| 欧美大白屁股肥臀xxxxxx| 亚洲欧美另类久久久精品2019| 精东粉嫩av免费一区二区三区| 色噜噜狠狠一区二区三区果冻| 欧美v亚洲v综合ⅴ国产v| 亚洲午夜久久久久久久久电影网| 国产精品一级片| 91精品欧美综合在线观看最新 | 99re热这里只有精品视频| 精品国产一区二区三区久久久蜜月 | 91搞黄在线观看| 国产农村妇女精品| 久久成人综合网| 欧美日韩国产123区| 亚洲视频在线观看一区| 国产在线麻豆精品观看| 91精品国产免费| 亚洲国产另类av| 在线观看亚洲成人| 中文字幕在线视频一区| 国产精品一区二区三区乱码| 精品国产一区二区亚洲人成毛片| 视频一区视频二区在线观看| 色视频成人在线观看免| 亚洲欧美一区二区三区国产精品 | 久久国产福利国产秒拍| 777a∨成人精品桃花网| 一区二区三区免费看视频| 95精品视频在线| 亚洲欧洲精品天堂一级| 成人免费视频一区| 国产精品久久久久久久久动漫| 国产精品18久久久久久久久| 精品久久久久久久久久久久包黑料| 日韩中文字幕亚洲一区二区va在线| 欧美视频一区二区|