Diffusion C API  6.5.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cbor_val_s Struct Reference

A CBOR value/token as returned by cbor_next_val(). More...

Data Fields

unsigned char initial_byte
 The initial byte of CBOR encoding; contains the major type (extracted into the field "type") and possibly other information; useful for comparing known CBOR values such as CBOR_VAL_FALSE. More...
 
CBOR_TYPE_T type
 The major type of the CBOR token.
 
CBOR_VALUE_UNION_T value
 Union, value depends on type.
 
int64_t size
 Length in bytes of CBOR_TYPE_BYTE_STRING and CBOR_TYPE_TEXT_STRING types, or the number of items in a CBOR_TYPE_ARRAY type, or the number of item pairs ina CBOR_TYPE_MAP. More...
 

Detailed Description

A CBOR value/token as returned by cbor_next_val().

Field Documentation

unsigned char cbor_val_s::initial_byte

The initial byte of CBOR encoding; contains the major type (extracted into the field "type") and possibly other information; useful for comparing known CBOR values such as CBOR_VAL_FALSE.

int64_t cbor_val_s::size

Length in bytes of CBOR_TYPE_BYTE_STRING and CBOR_TYPE_TEXT_STRING types, or the number of items in a CBOR_TYPE_ARRAY type, or the number of item pairs ina CBOR_TYPE_MAP.


The documentation for this struct was generated from the following file: