Skip to main content

scan_file

Function scan_file 

Source
pub fn scan_file(
    file: &mut (impl Read + Seek),
) -> Result<Vec<(usize, usize)>, TensogramError>
Expand description

Scan a file for message boundaries without loading the entire file into memory.

Reads preamble-sized chunks and seeks forward, avoiding full-file reads for large files. Returns the same (offset, length) pairs as scan().