Comms CCF
This is a simple communication layer based on COBS, CBOR and FNV-1A
Loading...
Searching...
No Matches
Cbor::Cbor< T > Struct Template Reference

Parametrized CBOR interface. More...

#include <cbor.hpp>

Detailed Description

template<typename T>
struct Cbor::Cbor< T >

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.


The documentation for this struct was generated from the following file: