fn fix_unbroken_len(
unbroken_len: usize,
prev_ix: usize,
_cur_ix_masked: usize,
ring_buffer_break: Option<NonZeroUsize>,
) -> usize
Expand description
This code takes a length and checks if there’s an “end of dictionary” marker at the “ring_buffer_break“point. This marks where a backwards reference cannot pull data through. A match must stop at the end of the dictionary and cannot span the end of the dictionary and beginning of the file. ring_buffer_break is only set true for custom LZ77 dictionary.