Lines Matching refs:strstart
336 s->strstart = length;
509 wraplen = 6 + (s->strstart ? 4 : 0);
665 if (s->strstart != 0) header |= PRESET_DICT;
672 if (s->strstart != 0) {
849 s->strstart = 0;
1034 s->strstart = 0;
1066 register Bytef *scan = s->window + s->strstart; /* current string */
1071 IPos limit = s->strstart > (IPos)MAX_DIST(s) ?
1072 s->strstart - (IPos)MAX_DIST(s) : NIL;
1083 register Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;
1087 register Bytef *strend = s->window + s->strstart + MAX_MATCH;
1106 Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
1109 Assert(cur_match < s->strstart, "no future");
1214 register Bytef *scan = s->window + s->strstart; /* current string */
1217 register Bytef *strend = s->window + s->strstart + MAX_MATCH;
1224 Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
1226 Assert(cur_match < s->strstart, "no future");
1312 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);
1316 if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
1330 if (s->strstart >= wsize+MAX_DIST(s)) {
1334 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */
1378 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
1383 s->ins_h = s->window[s->strstart];
1384 UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]);
1403 ulg curr = s->strstart + (ulg)(s->lookahead);
1438 (ulg)((long)s->strstart - s->block_start), \
1440 s->block_start = s->strstart; \
1479 Assert(s->strstart < s->w_size+MAX_DIST(s) ||
1489 s->strstart += s->lookahead;
1494 if (s->strstart == 0 || (ulg)s->strstart >= max_start) {
1496 s->lookahead = (uInt)(s->strstart - max_start);
1497 s->strstart = (uInt)max_start;
1503 if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) {
1544 INSERT_STRING(s, s->strstart, hash_head);
1550 if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) {
1559 check_match(s, s->strstart, s->match_start, s->match_length);
1561 _tr_tally_dist(s, s->strstart - s->match_start,
1574 s->strstart++;
1575 INSERT_STRING(s, s->strstart, hash_head);
1580 s->strstart++;
1584 s->strstart += s->match_length;
1586 s->ins_h = s->window[s->strstart];
1587 UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]);
1597 Tracevv((stderr,"%c", s->window[s->strstart]));
1598 _tr_tally_lit (s, s->window[s->strstart], bflush);
1600 s->strstart++;
1641 INSERT_STRING(s, s->strstart, hash_head);
1650 s->strstart - hash_head <= MAX_DIST(s)) {
1661 s->strstart - s->match_start > TOO_FAR)
1675 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
1678 check_match(s, s->strstart-1, s->prev_match, s->prev_length);
1680 _tr_tally_dist(s, s->strstart -1 - s->prev_match,
1691 if (++s->strstart <= max_insert) {
1692 INSERT_STRING(s, s->strstart, hash_head);
1697 s->strstart++;
1706 Tracevv((stderr,"%c", s->window[s->strstart-1]));
1707 _tr_tally_lit(s, s->window[s->strstart-1], bflush);
1711 s->strstart++;
1719 s->strstart++;
1725 Tracevv((stderr,"%c", s->window[s->strstart-1]));
1726 _tr_tally_lit(s, s->window[s->strstart-1], bflush);
1762 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
1763 scan = s->window + s->strstart - 1;
1766 strend = s->window + s->strstart + MAX_MATCH;
1781 check_match(s, s->strstart, s->strstart - 1, s->match_length);
1786 s->strstart += s->match_length;
1790 Tracevv((stderr,"%c", s->window[s->strstart]));
1791 _tr_tally_lit (s, s->window[s->strstart], bflush);
1793 s->strstart++;
1824 Tracevv((stderr,"%c", s->window[s->strstart]));
1825 _tr_tally_lit (s, s->window[s->strstart], bflush);
1827 s->strstart++;