pub fn encode_wal_record(shard_id: u32, lsn: u64, payload: &[u8]) -> Vec<u8> ⓘExpand description
Encode one logical record into a framed, checksummed byte vector.
§Panics
Panics if payload is larger than u32::MAX bytes, which the 64 MiB
record ceiling makes impossible in practice.