Skip to main content

scan_segment

Function scan_segment 

pub fn scan_segment(
    bytes: &[u8],
    visit: impl FnMut(Lsn, RecordBuf),
) -> Result<Option<Scanned>, ScanError>
Expand description

Scans a segment, calling visit for each valid record in order. Returns Ok(None) for a never-activated (all-zero header) segment.