Diffusion C API
6.2.9
|
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... | |
A CBOR value/token as returned by cbor_next_val().
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.