pub fn try_reference_post_process(
matches: &[ByteRange],
haystack: &[u8],
) -> Result<Vec<PostProcessedMatch>, PostProcessError>Expand description
Fuse dedup_regions_inplace, entropy-per-span, and confidence into one
Reference oracle pass over the input.
Returned vector is sorted by (pid, start, end) (the dedup
post-condition). haystack is the same byte buffer the matcher scanned.
ยงErrors
Returns PostProcessError::InvalidRange if any deduped match points
outside haystack.