Expand description
Byte-exact WAL record framing.
Structs§
- Decoded
Record - A complete checked record plus its encoded width.
- WalRecord
- One decoded WAL record borrowing its checksummed payload.
Enums§
- Record
Encode Error - Record encoding failure.
- Record
Error - Specific validation failure for one WAL record.
Constants§
- MIN_
RECORD_ LEN - Smallest encoded WAL record.
- RECORD_
CHECKSUM_ LEN - Width of the trailing xxh3-64 checksum.
- RECORD_
HEADER_ LEN - Bytes before a WAL record payload: length, sequence, and operation.
Functions§
- decode_
record - Decodes one record and verifies xxh3-64 before returning any fields.
- encode_
record - Encodes
[payload_len:u32, seq:u64, op:u16, payload, checksum:u64].