Skip to main content

build_index

Function build_index 

Source
pub fn build_index<R: Read>(
    file: &mut R,
    size: u64,
    mtime: i64,
    unit: Unit,
    step: u64,
    block: usize,
) -> Result<LineIndex>
Expand description

Reads file (size bytes) front to back and notes where every step-th line starts.