Skip to main content

line_by_bytes

Function line_by_bytes 

Source
fn line_by_bytes(sizes: &[usize], cap: usize) -> usize
Expand description

The first frame of sizes whose tail weighs no more than cap.

The walk runs from the end and stops at the frame that tips the cap, so a frame’s own size is never summed past what the cut could keep.