Lines Matching refs:strstart
259 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart); in fill_window()
263 if (more == 0 && s->strstart == 0 && s->lookahead == 0) { in fill_window()
277 if (s->strstart >= wsize + MAX_DIST(s)) { in fill_window()
281 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */ in fill_window()
283 if (s->insert > s->strstart) in fill_window()
284 s->insert = s->strstart; in fill_window()
303 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more); in fill_window()
308 uInt str = s->strstart - s->insert; in fill_window()
340 ulg curr = s->strstart + (ulg)(s->lookahead); in fill_window()
366 Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD, in fill_window()
574 s->strstart = 0; in deflateSetDictionary()
589 str = s->strstart; in deflateSetDictionary()
599 s->strstart = str; in deflateSetDictionary()
603 s->strstart += s->lookahead; in deflateSetDictionary()
604 s->block_start = (long)s->strstart; in deflateSetDictionary()
624 len = s->strstart + s->lookahead; in deflateGetDictionary()
628 zmemcpy(dictionary, s->window + s->strstart + s->lookahead - len, len); in deflateGetDictionary()
685 s->strstart = 0; in lm_init()
775 if (strm->avail_in || (s->strstart - s->block_start) + s->lookahead) in deflateParams()
860 wraplen = 6 + (s->strstart ? 4 : 0); in deflateBound()
1010 if (s->strstart != 0) header |= PRESET_DICT; in deflate()
1016 if (s->strstart != 0) { in deflate()
1214 s->strstart = 0; in deflate()
1350 register Bytef *scan = s->window + s->strstart; /* current string */ in longest_match()
1355 IPos limit = s->strstart > (IPos)MAX_DIST(s) ? in longest_match()
1356 s->strstart - (IPos)MAX_DIST(s) : NIL; in longest_match()
1367 register Bytef *strend = s->window + s->strstart + MAX_MATCH - 1; in longest_match()
1371 register Bytef *strend = s->window + s->strstart + MAX_MATCH; in longest_match()
1390 Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD, in longest_match()
1394 Assert(cur_match < s->strstart, "no future"); in longest_match()
1497 register Bytef *scan = s->window + s->strstart; /* current string */ in longest_match()
1500 register Bytef *strend = s->window + s->strstart + MAX_MATCH; in longest_match()
1507 Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD, in longest_match()
1510 Assert(cur_match < s->strstart, "no future"); in longest_match()
1593 (ulg)((long)s->strstart - s->block_start), \
1595 s->block_start = s->strstart; \
1653 left = s->strstart - s->block_start; /* bytes left in window */ in deflate_stored()
1727 s->strstart = s->w_size; in deflate_stored()
1728 s->insert = s->strstart; in deflate_stored()
1731 if (s->window_size - s->strstart <= used) { in deflate_stored()
1733 s->strstart -= s->w_size; in deflate_stored()
1734 zmemcpy(s->window, s->window + s->w_size, s->strstart); in deflate_stored()
1737 if (s->insert > s->strstart) in deflate_stored()
1738 s->insert = s->strstart; in deflate_stored()
1740 zmemcpy(s->window + s->strstart, s->strm->next_in - used, used); in deflate_stored()
1741 s->strstart += used; in deflate_stored()
1744 s->block_start = s->strstart; in deflate_stored()
1746 if (s->high_water < s->strstart) in deflate_stored()
1747 s->high_water = s->strstart; in deflate_stored()
1755 s->strm->avail_in == 0 && (long)s->strstart == s->block_start) in deflate_stored()
1759 have = s->window_size - s->strstart; in deflate_stored()
1763 s->strstart -= s->w_size; in deflate_stored()
1764 zmemcpy(s->window, s->window + s->w_size, s->strstart); in deflate_stored()
1768 if (s->insert > s->strstart) in deflate_stored()
1769 s->insert = s->strstart; in deflate_stored()
1774 read_buf(s->strm, s->window + s->strstart, have); in deflate_stored()
1775 s->strstart += have; in deflate_stored()
1778 if (s->high_water < s->strstart) in deflate_stored()
1779 s->high_water = s->strstart; in deflate_stored()
1790 left = s->strstart - s->block_start; in deflate_stored()
1836 INSERT_STRING(s, s->strstart, hash_head); in deflate_fast()
1842 if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) { in deflate_fast()
1851 check_match(s, s->strstart, s->match_start, s->match_length); in deflate_fast()
1853 _tr_tally_dist(s, s->strstart - s->match_start, in deflate_fast()
1866 s->strstart++; in deflate_fast()
1867 INSERT_STRING(s, s->strstart, hash_head); in deflate_fast()
1872 s->strstart++; in deflate_fast()
1876 s->strstart += s->match_length; in deflate_fast()
1878 s->ins_h = s->window[s->strstart]; in deflate_fast()
1879 UPDATE_HASH(s, s->ins_h, s->window[s->strstart + 1]); in deflate_fast()
1889 Tracevv((stderr,"%c", s->window[s->strstart])); in deflate_fast()
1890 _tr_tally_lit(s, s->window[s->strstart], bflush); in deflate_fast()
1892 s->strstart++; in deflate_fast()
1896 s->insert = s->strstart < MIN_MATCH-1 ? s->strstart : MIN_MATCH-1; in deflate_fast()
1936 INSERT_STRING(s, s->strstart, hash_head); in deflate_slow()
1945 s->strstart - hash_head <= MAX_DIST(s)) { in deflate_slow()
1956 s->strstart - s->match_start > TOO_FAR) in deflate_slow()
1970 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH; in deflate_slow()
1973 check_match(s, s->strstart - 1, s->prev_match, s->prev_length); in deflate_slow()
1975 _tr_tally_dist(s, s->strstart - 1 - s->prev_match, in deflate_slow()
1986 if (++s->strstart <= max_insert) { in deflate_slow()
1987 INSERT_STRING(s, s->strstart, hash_head); in deflate_slow()
1992 s->strstart++; in deflate_slow()
2001 Tracevv((stderr,"%c", s->window[s->strstart - 1])); in deflate_slow()
2002 _tr_tally_lit(s, s->window[s->strstart - 1], bflush); in deflate_slow()
2006 s->strstart++; in deflate_slow()
2014 s->strstart++; in deflate_slow()
2020 Tracevv((stderr,"%c", s->window[s->strstart - 1])); in deflate_slow()
2021 _tr_tally_lit(s, s->window[s->strstart - 1], bflush); in deflate_slow()
2024 s->insert = s->strstart < MIN_MATCH-1 ? s->strstart : MIN_MATCH-1; in deflate_slow()
2060 if (s->lookahead >= MIN_MATCH && s->strstart > 0) { in deflate_rle()
2061 scan = s->window + s->strstart - 1; in deflate_rle()
2064 strend = s->window + s->strstart + MAX_MATCH; in deflate_rle()
2081 check_match(s, s->strstart, s->strstart - 1, s->match_length); in deflate_rle()
2086 s->strstart += s->match_length; in deflate_rle()
2090 Tracevv((stderr,"%c", s->window[s->strstart])); in deflate_rle()
2091 _tr_tally_lit(s, s->window[s->strstart], bflush); in deflate_rle()
2093 s->strstart++; in deflate_rle()
2127 Tracevv((stderr,"%c", s->window[s->strstart])); in deflate_huff()
2128 _tr_tally_lit(s, s->window[s->strstart], bflush); in deflate_huff()
2130 s->strstart++; in deflate_huff()