Function spacetimedb_commitlog::repo::open_segment_reader

source ยท
pub fn open_segment_reader<R: Repo>(
    repo: &R,
    max_log_format_version: u8,
    offset: u64,
) -> Result<Reader<R::Segment>>
Expand description

Open the existing segment at offset for reading.

Unlike [open_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.