open_segment_reader

Function open_segment_reader 

Source
pub fn open_segment_reader<R: Repo>(
    repo: &R,
    max_log_format_version: u8,
    offset: u64,
) -> Result<Reader<R::SegmentReader>>
Expand description

Open the existing segment at offset for reading.

Unlike resume_segment_writer, this does not traverse the segment. It does, however, attempt to read the segment header and checks that the log format version and checksum algorithm are compatible.