CCF
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Enumerations | Functions
ccf::cbor Namespace Reference

Namespaces

namespace  tag
 

Classes

struct  Array
 
class  CBORDecodeError
 
class  CBOREncodeError
 
struct  Map
 
struct  Tagged
 
struct  ValueImpl
 

Typedefs

using Value = std::shared_ptr< ValueImpl >
 
using Signed = int64_t
 
using Bytes = std::span< const uint8_t >
 
using String = std::string_view
 
using Simple = uint8_t
 
using MapItem = std::pair< Value, Value >
 
using Type = std::variant< Signed, Bytes, String, Array, Map, Tagged, Simple >
 

Enumerations

enum  SimpleValue : uint8_t { False = 20 , True = 21 , Null = 22 , Undefined = 23 }
 
enum class  Error : uint8_t {
  UNDEFINED = 0 , DECODE_FAILED = 1 , KEY_NOT_FOUND = 2 , OUT_OF_BOUND = 3 ,
  TYPE_MISMATCH = 4 , ENCODE_FAILED = 5
}
 

Functions

decltype(auto) rethrow_with_msg (auto &&f, std::string_view msg={})
 

Typedef Documentation

◆ Bytes

using ccf::cbor::Bytes = typedef std::span<const uint8_t>

◆ MapItem

using ccf::cbor::MapItem = typedef std::pair<Value, Value>

◆ Signed

using ccf::cbor::Signed = typedef int64_t

◆ Simple

using ccf::cbor::Simple = typedef uint8_t

◆ String

using ccf::cbor::String = typedef std::string_view

◆ Type

using ccf::cbor::Type = typedef std::variant<Signed, Bytes, String, Array, Map, Tagged, Simple>

◆ Value

using ccf::cbor::Value = typedef std::shared_ptr<ValueImpl>

Enumeration Type Documentation

◆ Error

enum class ccf::cbor::Error : uint8_t
strong
Enumerator
UNDEFINED 
DECODE_FAILED 
KEY_NOT_FOUND 
OUT_OF_BOUND 
TYPE_MISMATCH 
ENCODE_FAILED 

◆ SimpleValue

enum ccf::cbor::SimpleValue : uint8_t
Enumerator
False 
True 
Null 
Undefined 

Function Documentation

◆ rethrow_with_msg()

decltype(auto) ccf::cbor::rethrow_with_msg ( auto &&  f,
std::string_view  msg = {} 
)