partial_suffix_len

Function partial_suffix_len 

Source
fn partial_suffix_len(buf: &[u8], marker: &[u8]) -> usize
Expand description

Largest n in [0, marker.len()) such that the last n bytes of buf are a prefix of marker. Used as the lookahead window for chunk-safe marker detection.