Expand description
Entry header and CRC computation.
Structs§
- Entry
Header - Public API entry header (native endianness).
- Entry
Header Wire - Wire-format entry header for zerocopy serialization.
Enums§
- Entry
Kind - What a stored entry holds.
Constants§
- ENTRY_
CRC_ SIZE - Size of the CRC-32C trailer in bytes.
- ENTRY_
HEADER_ CRC_ SIZE - Size of the entry header CRC in bytes.
- ENTRY_
HEADER_ FIELDS_ SIZE - Number of leading header bytes covered by the integrity CRCs (marker through
payload_len) — i.e. the header excluding its own
header_crcfield. - ENTRY_
HEADER_ SIZE - Size of the entry header in bytes (including the trailing header CRC).
- ENTRY_
MARKER - Entry marker byte: one sample, the payload stored as given.
- ENTRY_
MARKER_ RUN - Entry marker byte for a run: many evenly spaced samples under one header.
- ENTRY_
OVERHEAD - Total overhead per entry (header + trailing CRC).
- FLAGS_
COMMITTED - Flags byte value for a committed entry (all bits cleared).
- FLAGS_
UNCOMMITTED - Flags byte value for an uncommitted entry (all bits set, NOR flash erased state).
Functions§
- compute_
entry_ crc - Compute CRC-32C over offset, header (with flags masked), and payload.
- is_
entry_ marker - Whether
bytestarts an entry of either kind.