Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
corium::wire Namespace Reference

Classes

class  EventJournalReader
 Zero-heap event journal reader and deterministic player into Corium EventSinks. More...
 
class  EventJournalWriter
 Statically allocated binary event journal writer for zero-heap post-mortem logging and record playback. More...
 
struct  JournalHeader
 Header placed at the beginning of an event journal binary stream. More...
 
struct  JournalRecordHeader
 Header preceding every serialized event record in the journal. More...
 
struct  WireHeader
 Header structure framing binary wire packets for serial, CAN, SPI, or network transport. More...
 
struct  WirePacket
 Statically-sized zero-heap binary wire packet. More...
 
class  WireSerializer
 Zero-heap type-safe serializer and deserializer for Corium event variants over binary wire streams. More...
 

Functions

constexpr uint16_t calculateCrc16 (std::span< const uint8_t > data) noexcept
 Calculate CRC-16-CCITT checksum over a byte span without lookup tables.
 
template<typename T >
constexpr uint8_t computeTypeSignature () noexcept
 Calculate an ABI type signature based on size and alignment.
 
template<typename EventVariant >
constexpr uint64_t computeVariantSchemaHash () noexcept
 Computes a deterministic 64-bit ABI hash for an EventVariant type.
 

Variables

constexpr uint32_t CORIUM_JOURNAL_MAGIC = 0x4a4f5552
 Magic identifier for Corium binary event journals ("JOUR" in hex: 0x4a4f5552).
 
constexpr uint32_t CORIUM_JOURNAL_VERSION = 1
 Current schema version for Corium event journals.
 
constexpr uint16_t CORIUM_WIRE_MAGIC = 0xC041
 Default magic header identifier for Corium binary wire packets (0xC041).
 
constexpr uint8_t CORIUM_WIRE_VERSION = 1
 Current schema version for Corium binary wire packets.
 

Function Documentation

◆ calculateCrc16()

constexpr uint16_t corium::wire::calculateCrc16 ( std::span< const uint8_t >  data)
constexprnoexcept

Calculate CRC-16-CCITT checksum over a byte span without lookup tables.

+ Here is the caller graph for this function:

◆ computeTypeSignature()

template<typename T >
constexpr uint8_t corium::wire::computeTypeSignature ( )
constexprnoexcept

Calculate an ABI type signature based on size and alignment.

◆ computeVariantSchemaHash()

template<typename EventVariant >
constexpr uint64_t corium::wire::computeVariantSchemaHash ( )
constexprnoexcept

Computes a deterministic 64-bit ABI hash for an EventVariant type.

Variable Documentation

◆ CORIUM_JOURNAL_MAGIC

constexpr uint32_t corium::wire::CORIUM_JOURNAL_MAGIC = 0x4a4f5552
inlineconstexpr

Magic identifier for Corium binary event journals ("JOUR" in hex: 0x4a4f5552).

◆ CORIUM_JOURNAL_VERSION

constexpr uint32_t corium::wire::CORIUM_JOURNAL_VERSION = 1
inlineconstexpr

Current schema version for Corium event journals.

◆ CORIUM_WIRE_MAGIC

constexpr uint16_t corium::wire::CORIUM_WIRE_MAGIC = 0xC041
inlineconstexpr

Default magic header identifier for Corium binary wire packets (0xC041).

◆ CORIUM_WIRE_VERSION

constexpr uint8_t corium::wire::CORIUM_WIRE_VERSION = 1
inlineconstexpr

Current schema version for Corium binary wire packets.