|
CCF
|
Classes | |
| struct | Array |
| struct | Map |
| struct | Tagged |
| struct | ValueImpl |
Typedefs | |
| using | Value = std::unique_ptr< ValueImpl > |
| using | Unsigned = uint64_t |
| using | Signed = int64_t |
| using | Bytes = std::span< const uint8_t > |
| using | String = std::string_view |
| using | Simple = uint8_t |
| using | Type = std::variant< Unsigned, Signed, Bytes, String, Array, Map, Tagged, Simple > |
| using | CBORDecodeError = std::runtime_error |
Functions | |
| Value | make_unsigned (uint64_t value) |
| Value | make_signed (int64_t value) |
| Value | make_string (std::string_view data) |
| Value | parse_value (std::span< const uint8_t > raw, std::string_view context) |
| std::string | print_value (const Value &value, size_t indent) |
| using ccf::cbor::Bytes = typedef std::span<const uint8_t> |
| using ccf::cbor::CBORDecodeError = typedef std::runtime_error |
| using ccf::cbor::Signed = typedef int64_t |
| using ccf::cbor::Simple = typedef uint8_t |
| using ccf::cbor::String = typedef std::string_view |
| using ccf::cbor::Type = typedef std::variant<Unsigned, Signed, Bytes, String, Array, Map, Tagged, Simple> |
| using ccf::cbor::Unsigned = typedef uint64_t |
| using ccf::cbor::Value = typedef std::unique_ptr<ValueImpl> |
| Value ccf::cbor::make_signed | ( | int64_t | value | ) |
| Value ccf::cbor::make_string | ( | std::string_view | data | ) |
| Value ccf::cbor::make_unsigned | ( | uint64_t | value | ) |
| Value ccf::cbor::parse_value | ( | std::span< const uint8_t > | raw, |
| std::string_view | context | ||
| ) |
| std::string ccf::cbor::print_value | ( | const Value & | value, |
| size_t | indent | ||
| ) |