• Home
  • Raw
  • Download

Lines Matching refs:lookahead

432     if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead)
458 while (s->lookahead >= MIN_MATCH) {
460 n = s->lookahead - (MIN_MATCH-1);
466 s->lookahead = MIN_MATCH-1;
469 s->strstart += s->lookahead;
471 s->insert = s->lookahead;
472 s->lookahead = 0;
493 len = s->strstart + s->lookahead;
497 zmemcpy(dictionary, s->window + s->strstart + s->lookahead - len, len);
1033 if (strm->avail_in != 0 || s->lookahead != 0 ||
1068 if (s->lookahead == 0) {
1246 s->lookahead = 0;
1315 if ((uInt)nice_match > s->lookahead) nice_match = (int)s->lookahead;
1411 if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
1412 return s->lookahead;
1471 return (uInt)len <= s->lookahead ? (uInt)len : s->lookahead;
1537 Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");
1540 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);
1544 if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
1582 n = deflate_read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
1583 s->lookahead += n;
1586 if (s->lookahead + s->insert >= MIN_MATCH) {
1601 if (s->lookahead + s->insert < MIN_MATCH)
1609 } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
1619 ulg curr = s->strstart + (ulg)(s->lookahead);
1885 if (s->lookahead < MIN_LOOKAHEAD) {
1887 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1890 if (s->lookahead == 0) break; /* flush the current block */
1897 if (s->lookahead >= MIN_MATCH) {
1918 s->lookahead -= s->match_length;
1925 s->lookahead >= MIN_MATCH) {
1953 s->lookahead--;
1988 if (s->lookahead < MIN_LOOKAHEAD) {
1990 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1993 if (s->lookahead == 0) break; /* flush the current block */
2000 if (s->lookahead >= MIN_MATCH) {
2035 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
2048 s->lookahead -= s->prev_length-1;
2072 s->lookahead--;
2080 s->lookahead--;
2118 if (s->lookahead <= MAX_MATCH) {
2120 if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) {
2123 if (s->lookahead == 0) break; /* flush the current block */
2128 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
2140 if (s->match_length > s->lookahead)
2141 s->match_length = s->lookahead;
2152 s->lookahead -= s->match_length;
2159 s->lookahead--;
2186 if (s->lookahead == 0) {
2188 if (s->lookahead == 0) {
2199 s->lookahead--;