aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Loading...
Searching...
No Matches
Classes | Enumerations
Aws::Crt::Cbor Namespace Reference

Classes

class  CborDecoder
 
class  CborEncoder
 

Enumerations

enum class  CborType {
  Unknown = AWS_CBOR_TYPE_UNKNOWN , UInt = AWS_CBOR_TYPE_UINT , NegInt = AWS_CBOR_TYPE_NEGINT , Float = AWS_CBOR_TYPE_FLOAT ,
  Bytes = AWS_CBOR_TYPE_BYTES , Text = AWS_CBOR_TYPE_TEXT , ArrayStart = AWS_CBOR_TYPE_ARRAY_START , MapStart = AWS_CBOR_TYPE_MAP_START ,
  Tag = AWS_CBOR_TYPE_TAG , Bool = AWS_CBOR_TYPE_BOOL , Null = AWS_CBOR_TYPE_NULL , Undefined = AWS_CBOR_TYPE_UNDEFINED ,
  Break = AWS_CBOR_TYPE_BREAK , IndefBytesStart = AWS_CBOR_TYPE_INDEF_BYTES_START , IndefTextStart = AWS_CBOR_TYPE_INDEF_TEXT_START , IndefArrayStart = AWS_CBOR_TYPE_INDEF_ARRAY_START ,
  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