Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
WirePacket.hpp File Reference

Binary packet framing with CRC-16 checksum and schema versioning. More...

#include <array>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <span>
+ Include dependency graph for WirePacket.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  corium::wire::WireHeader
 Header structure framing binary wire packets for serial, CAN, SPI, or network transport. More...
 
struct  corium::wire::WirePacket< MaxPayloadSize >
 Statically-sized zero-heap binary wire packet. More...
 

Namespaces

namespace  corium
 
namespace  corium::wire
 

Functions

constexpr uint16_t corium::wire::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 corium::wire::computeTypeSignature () noexcept
 Calculate an ABI type signature based on size and alignment.
 

Variables

constexpr uint16_t corium::wire::CORIUM_WIRE_MAGIC = 0xC041
 Default magic header identifier for Corium binary wire packets (0xC041).
 
constexpr uint8_t corium::wire::CORIUM_WIRE_VERSION = 1
 Current schema version for Corium binary wire packets.
 

Detailed Description

Binary packet framing with CRC-16 checksum and schema versioning.