Skip to main content

search

Function search 

Source
pub fn search<F: Read + Seek>(
    file: &mut F,
    size: u64,
    pat: &Pattern,
    from: u64,
    backward: bool,
    budget_bytes: u64,
    budget_time: Duration,
) -> Result<FileSearchBytesResult>
Expand description

The search over file (size bytes). Forward: the first match starting at or after from; backward: the last one starting at or before it.