struct
RationalRepresent a rational number (numerator and denominator).
Base classes
- struct TagSerializable
- Virtual struct defining CBOR tagged item serializability.
Public functions
-
void deserialize(std::
span<const uint8_t> bytes) - Deserialize CBOR byte vector.
- auto deserializer(const cppbor::SemanticTag& data) → void override virtual
- Deserialize the two values from the CBOR object.
-
auto serialize() const → std::
vector<uint8_t> - Serialize the object as a CBOR byte vector.
- auto serializer() const → cppbor::SemanticTag override virtual
- Serialize as 2-elem array with tag 6.30.