• Home
  • Raw
  • Download

Lines Matching refs:strstart

458             s->strstart = 0;
473 str = s->strstart;
479 s->strstart = str;
483 s->strstart += s->lookahead;
484 s->block_start = (long)s->strstart;
507 len = s->strstart + s->lookahead;
511 zmemcpy(dictionary, s->window + s->strstart + s->lookahead - len, len);
647 if (strm->avail_in || (s->strstart - s->block_start) + s->lookahead)
726 wraplen = 6 + (s->strstart ? 4 : 0);
882 if (s->strstart != 0) header |= PRESET_DICT;
888 if (s->strstart != 0) {
1086 s->strstart = 0;
1261 s->strstart = 0;
1294 register Bytef *scan = s->window + s->strstart; /* current string */
1299 IPos limit = s->strstart > (IPos)MAX_DIST(s) ?
1300 s->strstart - (IPos)MAX_DIST(s) : NIL;
1311 register Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;
1315 register Bytef *strend = s->window + s->strstart + MAX_MATCH;
1334 Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
1337 Assert(cur_match < s->strstart, "no future");
1460 register Bytef *scan = s->window + s->strstart; /* current string */
1463 register Bytef *strend = s->window + s->strstart + MAX_MATCH;
1470 Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
1472 Assert(cur_match < s->strstart, "no future");
1576 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);
1580 if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
1594 if (s->strstart >= wsize+MAX_DIST(s)) {
1598 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */
1600 if (s->insert > s->strstart)
1601 s->insert = s->strstart;
1620 n = deflate_read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
1625 uInt str = s->strstart - s->insert;
1657 ulg curr = s->strstart + (ulg)(s->lookahead);
1683 Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,
1695 (ulg)((long)s->strstart - s->block_start), \
1697 s->block_start = s->strstart; \
1756 left = s->strstart - s->block_start; /* bytes left in window */
1830 s->strstart = s->w_size;
1831 s->insert = s->strstart;
1834 if (s->window_size - s->strstart <= used) {
1836 s->strstart -= s->w_size;
1837 zmemcpy(s->window, s->window + s->w_size, s->strstart);
1840 if (s->insert > s->strstart)
1841 s->insert = s->strstart;
1843 zmemcpy(s->window + s->strstart, s->strm->next_in - used, used);
1844 s->strstart += used;
1847 s->block_start = s->strstart;
1849 if (s->high_water < s->strstart)
1850 s->high_water = s->strstart;
1858 s->strm->avail_in == 0 && (long)s->strstart == s->block_start)
1862 have = s->window_size - s->strstart;
1866 s->strstart -= s->w_size;
1867 zmemcpy(s->window, s->window + s->w_size, s->strstart);
1871 if (s->insert > s->strstart)
1872 s->insert = s->strstart;
1877 deflate_read_buf(s->strm, s->window + s->strstart, have);
1878 s->strstart += have;
1881 if (s->high_water < s->strstart)
1882 s->high_water = s->strstart;
1893 left = s->strstart - s->block_start;
1942 hash_head = insert_string(s, s->strstart);
1948 if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) {
1957 check_match(s, s->strstart, s->match_start, s->match_length);
1959 _tr_tally_dist(s, s->strstart - s->match_start,
1972 s->strstart++;
1973 hash_head = insert_string(s, s->strstart);
1978 s->strstart++;
1982 s->strstart += s->match_length;
1984 s->ins_h = s->window[s->strstart];
1985 UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]);
1995 Tracevv((stderr,"%c", s->window[s->strstart]));
1996 _tr_tally_lit (s, s->window[s->strstart], bflush);
1998 s->strstart++;
2002 s->insert = s->strstart < MIN_MATCH-1 ? s->strstart : MIN_MATCH-1;
2045 hash_head = insert_string(s, s->strstart);
2054 s->strstart - hash_head <= MAX_DIST(s)) {
2065 s->strstart - s->match_start > TOO_FAR)
2079 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
2085 check_match(s, s->strstart, s->prev_match+1, s->prev_length-1);
2087 check_match(s, s->strstart-1, s->prev_match, s->prev_length);
2090 _tr_tally_dist(s, s->strstart -1 - s->prev_match,
2101 if (++s->strstart <= max_insert) {
2102 hash_head = insert_string(s, s->strstart);
2107 s->strstart++;
2116 Tracevv((stderr,"%c", s->window[s->strstart-1]));
2117 _tr_tally_lit(s, s->window[s->strstart-1], bflush);
2121 s->strstart++;
2129 s->strstart++;
2135 Tracevv((stderr,"%c", s->window[s->strstart-1]));
2136 _tr_tally_lit(s, s->window[s->strstart-1], bflush);
2139 s->insert = s->strstart < MIN_MATCH-1 ? s->strstart : MIN_MATCH-1;
2178 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
2179 scan = s->window + s->strstart - 1;
2182 strend = s->window + s->strstart + MAX_MATCH;
2198 check_match(s, s->strstart, s->strstart - 1, s->match_length);
2203 s->strstart += s->match_length;
2207 Tracevv((stderr,"%c", s->window[s->strstart]));
2208 _tr_tally_lit (s, s->window[s->strstart], bflush);
2210 s->strstart++;
2247 Tracevv((stderr,"%c", s->window[s->strstart]));
2248 _tr_tally_lit (s, s->window[s->strstart], bflush);
2250 s->strstart++;