|
Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
|
Statically-sized zero-heap binary wire packet. More...
#include <WirePacket.hpp>
Collaboration diagram for corium::wire::WirePacket< MaxPayloadSize >:Public Member Functions | |
| void | finalize (uint8_t typeIdx, uint16_t length, uint8_t flags=0, uint8_t version=CORIUM_WIRE_VERSION) noexcept |
| Finalize packet header, set payload length and calculate CRC16 checksum. | |
| bool | isValid () const noexcept |
| Validate packet magic identifier, schema version, payload length bounds, and CRC16 checksum. | |
| constexpr size_t | totalWireSize () const noexcept |
| Total serialized wire size in bytes (header + payload length). | |
| constexpr | WirePacket ()=default |
Public Attributes | |
| WireHeader | header {} |
| std::array< uint8_t, MaxPayloadSize > | payload {} |
Statically-sized zero-heap binary wire packet.
| MaxPayloadSize | Maximum payload capacity in bytes (default: 64). |
|
constexprdefault |
|
inlinenoexcept |
Finalize packet header, set payload length and calculate CRC16 checksum.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinenoexcept |
Validate packet magic identifier, schema version, payload length bounds, and CRC16 checksum.
Here is the call graph for this function:
|
inlineconstexprnoexcept |
Total serialized wire size in bytes (header + payload length).
| WireHeader corium::wire::WirePacket< MaxPayloadSize >::header {} |
| std::array<uint8_t, MaxPayloadSize> corium::wire::WirePacket< MaxPayloadSize >::payload {} |