Skip to main content

split_boundaries

Function split_boundaries 

Source
pub fn split_boundaries(buf: &[u8], n_splits: usize) -> Vec<BlockBoundary>
Expand description

Given a compressed buffer and N desired splits, find the N-1 interior block boundaries closest to the nominal split points.

Returns up to n_splits - 1 boundaries. The caller uses these plus bit 0 and EOF to define the N ranges for parallel decompression.