Skip to main content

Module entry

Module entry 

Source
Expand description

Entry header and CRC computation.

Structs§

EntryHeader
Public API entry header (native endianness).
EntryHeaderWire
Wire-format entry header for zerocopy serialization.

Enums§

EntryKind
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_crc field.
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 byte starts an entry of either kind.