Skip to main content

read_header_ranged_from

Function read_header_ranged_from 

Source
pub fn read_header_ranged_from(
    src: &mut dyn RangeSource,
    format: FileFormat,
    first: u64,
    stop: &dyn Fn() -> bool,
) -> Result<Header, RangeError>
Expand description

As read_header_ranged, with the first range first (at least the 8 bytes of a SafeTensors length): small, for the fuzz target and the tests, so a header crosses many ranges.