length = hc_matchfinder_longest_match(&c->hc_mf,
in_begin,
- in_next - in_begin,
+ in_next,
XPRESS_MIN_MATCH_LEN - 1,
in_end - in_next,
min(in_end - in_next, c->nice_match_length),
*next_chosen_item++ =
xpress_record_match(c, length, offset);
in_next += 1;
- hc_matchfinder_skip_positions(&c->hc_mf,
- in_begin,
- in_next - in_begin,
- in_end - in_begin,
- length - 1,
- next_hashes);
+ hc_matchfinder_skip_bytes(&c->hc_mf,
+ in_begin,
+ in_next,
+ in_end,
+ length - 1,
+ next_hashes);
in_next += length - 1;
} else {
/* No match found */
/* Find the longest match at the current position. */
cur_len = hc_matchfinder_longest_match(&c->hc_mf,
in_begin,
- in_next - in_begin,
+ in_next,
XPRESS_MIN_MATCH_LEN - 1,
in_end - in_next,
min(in_end - in_next, c->nice_match_length),
*next_chosen_item++ =
xpress_record_match(c, cur_len, cur_offset);
- hc_matchfinder_skip_positions(&c->hc_mf,
- in_begin,
- in_next - in_begin,
- in_end - in_begin,
- cur_len - 1,
- next_hashes);
+ hc_matchfinder_skip_bytes(&c->hc_mf,
+ in_begin,
+ in_next,
+ in_end,
+ cur_len - 1,
+ next_hashes);
in_next += cur_len - 1;
continue;
}
*/
next_len = hc_matchfinder_longest_match(&c->hc_mf,
in_begin,
- in_next - in_begin,
+ in_next,
cur_len,
in_end - in_next,
min(in_end - in_next, c->nice_match_length),
* output the current match. */
*next_chosen_item++ =
xpress_record_match(c, cur_len, cur_offset);
- hc_matchfinder_skip_positions(&c->hc_mf,
- in_begin,
- in_next - in_begin,
- in_end - in_begin,
- cur_len - 2,
- next_hashes);
+ hc_matchfinder_skip_bytes(&c->hc_mf,
+ in_begin,
+ in_next,
+ in_end,
+ cur_len - 2,
+ next_hashes);
in_next += cur_len - 2;
continue;
}