Skip to main content

read_backup_header

Function read_backup_header 

Source
pub fn read_backup_header(data: &[u8]) -> Result<(EpochId, EpochId, u64)>
Expand description

Reads and validates the incremental backup file header.

Returns (start_epoch, end_epoch, record_count) on success.

§Errors

Returns an error if the header is invalid.

§Panics

Cannot panic: all slice indexing is bounds-checked by the length guard.