|
Comms CCF
This is a simple communication layer based on COBS, CBOR and FNV-1A
|
Parametrized CBOR interface. More...
#include <cbor.hpp>
Parametrized CBOR interface.
Valid data which can be encoded has the following methods:
static bool encode(T value, std::span<uint8_t> & buf); static std::optional<T> decode(std::span<uint8_t> & buf); static size_t maxSize();
Though C++ doesn't require this and in fact is better at giving compile-errors (rather than link errors) if it is commented out, as then it doesn't assume it is defined in a different object.