Skip to main content

load_snapshot_bytes

Function load_snapshot_bytes 

Source
pub fn load_snapshot_bytes(
    bytes: &[u8],
) -> Result<Snapshot<'_>, PostgresGraphError>
Expand description

Validates and borrows snapshot bytes without copying the payload region.

§Errors

Returns PostgresGraphError::Snapshot when header or section table validation fails.

§Performance

This function is O(s) where s is the section count.