Skip to main content

read_snapshot_bytes

Function read_snapshot_bytes 

Source
pub fn read_snapshot_bytes(bytes: &[u8]) -> Result<(State, u64), DbError>
Expand description

Validate and decode snapshot bytes without touching the filesystem.

This is useful for embedded callers that already control the bytes and for exercising the on-disk format boundary without creating a temporary file.