Skip to main content

read_header

Function read_header 

Source
pub fn read_header(path: &Path) -> Result<(usize, usize, usize)>
Expand description

Parse only the format header of path, returning (byte_offset, n, dim): where the f32 payload begins and its shape. The payload itself is not read, so a large dataset is not pulled into the heap.

ยงErrors

Returns an error if the extension is unknown or the header does not parse.