pub fn line_of<F: Read + Seek>(
file: &mut F,
idx: &LineIndex,
offset: u64,
unit: Unit,
block: usize,
) -> Result<u64>Expand description
The line (0-based) that holds byte offset: the last one that starts at or before it. An offset past the end is in
the last line. Reads from the nearest checkpoint to offset, counting breaks, so at most STEP lines.