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

Static Public Member Functions

static bool encode (I value, std::span< uint8_t > &buf)
static std::optional< I > decode (std::span< uint8_t > &buf)
static size_t maxSize ()

Static Public Attributes

static constexpr size_t bytes = sizeof(I)

Member Function Documentation

◆ decode()

template<typename I>
std::optional< I > Cbor::Cbor< I >::decode ( std::span< uint8_t > & buf)
inlinestatic

Note, in 2s complement -n-1 is bitwise negated n (~n)

◆ encode()

template<typename I>
bool Cbor::Cbor< I >::encode ( I value,
std::span< uint8_t > & buf )
inlinestatic

Note, in 2s complement -n-1 is bitwise negated n (~n)


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