AWS IoT Device SDK C++ v2  1.33.0
AWS IoT Device SDK C++ v2
Classes | Enumerations
Aws::Crt::Cbor Namespace Reference

Classes

class  CborDecoder
 
class  CborEncoder
 

Enumerations

enum  CborType {
  CborType::Unknown = AWS_CBOR_TYPE_UNKNOWN, CborType::UInt = AWS_CBOR_TYPE_UINT, CborType::NegInt = AWS_CBOR_TYPE_NEGINT, CborType::Float = AWS_CBOR_TYPE_FLOAT,
  CborType::Bytes = AWS_CBOR_TYPE_BYTES, CborType::Text = AWS_CBOR_TYPE_TEXT, CborType::ArrayStart = AWS_CBOR_TYPE_ARRAY_START, CborType::MapStart = AWS_CBOR_TYPE_MAP_START,
  CborType::Tag = AWS_CBOR_TYPE_TAG, CborType::Bool = AWS_CBOR_TYPE_BOOL, CborType::Null = AWS_CBOR_TYPE_NULL, CborType::Undefined = AWS_CBOR_TYPE_UNDEFINED,
  CborType::Break = AWS_CBOR_TYPE_BREAK, CborType::IndefBytesStart = AWS_CBOR_TYPE_INDEF_BYTES_START, CborType::IndefTextStart = AWS_CBOR_TYPE_INDEF_TEXT_START, CborType::IndefArrayStart = AWS_CBOR_TYPE_INDEF_ARRAY_START,
  CborType::IndefMapStart = AWS_CBOR_TYPE_INDEF_MAP_START
}
 

Enumeration Type Documentation

◆ CborType

The types used by APIs, not 1:1 with major types. It's an extension for CBOR major type in RFC8949 section 3.1. Major type 0 - UInt Major type 1 - NegInt Major type 2 - Bytes / IndefBytesStart Major type 3 - Text / IndefTextStart Major type 4 - ArrayStart / IndefArrayStart Major type 5 - MapStart / IndefMapStart Major type 6 - Tag Major type 7:

  • 20/21 - Bool
  • 22 - Null
  • 23 - Undefined
  • 25/26/27 - Float
  • 31 - Break
  • Rest of the values are not supported.
Enumerator
Unknown 
UInt 
NegInt 
Float 
Bytes 
Text 
ArrayStart 
MapStart 
Tag 
Bool 
Null 
Undefined 
Break 
IndefBytesStart 
IndefTextStart 
IndefArrayStart 
IndefMapStart