Skip to main content

Module header

Module header 

Source
Expand description

Per-document record header — encode / decode.

See docs/format.md § Document records for the byte layout. The header is 16 bytes laid out as four little-endian u32 fields, immediately followed by the postcard payload. The page-level CRC32C trailer (on the B+tree leaf containing this record) covers everything around the record; the header’s own payload_crc32c covers only the payload bytes so that a forensic tool can verify a record in isolation.

Structs§

DocumentHeader
In-memory representation of the per-document record header.

Constants§

DOC_HEADER_SIZE
Size of the per-document header in bytes.
MAX_INLINE_DOC
Maximum on-disk record length that still fits inline in a B+tree leaf alongside at least one slot.