Skip to main content

split_range_fewest

Function split_range_fewest 

Source
pub fn split_range_fewest(
    ranges: &[AvailableRange],
    requested: SlotRange,
    kind: BundleKind,
) -> Result<Vec<(u64, u64)>, String>
Expand description

split_range, choosing the gap-free split with the fewest sub-ranges instead of the most. Anchors, validates and errors exactly like it: an uncovered range names the first slot no bundle reaches.