Skip to main content

extract_strings_from_reader

Function extract_strings_from_reader 

Source
pub fn extract_strings_from_reader<R: Read>(
    reader: R,
    min_len: usize,
    max_strings: usize,
    estimated_len: u64,
) -> Result<Vec<ExtractedString>>
Expand description

Extracts strings directly from a Read, in chunks – NEVER loads more than CHUNK_SIZE bytes into RAM at once, suitable for multi-GB dump files. Carries exactly 1 trailing byte from each chunk into the next so a UTF-16LE pair straddling an I/O boundary is always tested correctly.