pub fn decode_header(buf: &[u8]) -> Result<DbHeader>Expand description
Decodes the header from a PAGE_SIZE-sized buffer. Returns an error if
magic bytes, format version, or page size don’t match what we wrote.
Both V4 and V5 are accepted; the result’s format_version echoes
what was on disk so a no-op resave preserves it.