QCBORItem holds the type, value and other info for a decoded item returned by GetNextItem(). More...
#include <qcbor.h>
Data Fields | |
| uint8_t | uNestingLevel |
| Tells what element of the val union to use. More... | |
| uint8_t | uLabelType |
| How deep the nesting from arrays and maps are. More... | |
| uint8_t | uDataAlloc |
| Tells what element of the label union to use. More... | |
| uint8_t | uLabelAlloc |
| 1 if allocated with string allocator, 0 if not. More... | |
| uint8_t | uNextNestLevel |
| Like uDataAlloc, but for label. More... | |
| union { | |
| uint64_t uint64 | |
| The value for uDataType QCBOR_TYPE_INT64. More... | |
| UsefulBufC string | |
| The value for uDataType QCBOR_TYPE_UINT64. More... | |
| uint16_t uCount | |
| The value for uDataType QCBOR_TYPE_BYTE_STRING and QCBOR_TYPE_TEXT_STRING. More... | |
| double dfnum | |
| The "value" for uDataType QCBOR_TYPE_ARRAY or QCBOR_TYPE_MAP – the number of items in the array or map UINT16_MAX when decoding indefinite lengths maps and arrays. More... | |
| struct { | |
| } epochDate | |
| The value for uDataType QCBOR_TYPE_DOUBLE. More... | |
| UsefulBufC dateString | |
| The value for uDataType QCBOR_TYPE_DATE_EPOCH. More... | |
| UsefulBufC bigNum | |
| The value for uDataType QCBOR_TYPE_DATE_STRING. More... | |
| uint8_t uSimple | |
| The value for uDataType QCBOR_TYPE_BIGNUM. More... | |
| uint64_t uTagV | |
| The integer value for unknown simple types. More... | |
| } | val |
| If not equal to uNestingLevel, this item closed out at least one map/array. More... | |
| union { | |
| int64_t int64 | |
| The label for uLabelType QCBOR_TYPE_BYTE_STRING and QCBOR_TYPE_TEXT_STRING. More... | |
| uint64_t uint64 | |
| The label for uLabelType for QCBOR_TYPE_INT64. More... | |
| } | label |
| The union holding the item's value. More... | |
| uint64_t | uTagBits |
| Union holding the different label types selected based on uLabelType. More... | |
QCBORItem holds the type, value and other info for a decoded item returned by GetNextItem().
| UsefulBufC bigNum |
| UsefulBufC dateString |
| double dfnum |
| struct { ... } epochDate |
The value for uDataType QCBOR_TYPE_DOUBLE.
| int64_t int64 |
| union { ... } label |
The union holding the item's value.
Select union member based on uDataType
| UsefulBufC string |
| uint16_t uCount |
| uint8_t uDataAlloc |
| uint64_t uint64 |
| uint8_t uLabelAlloc |
| uint8_t uLabelType |
| uint8_t uNestingLevel |
| uint64_t uTagBits |
| union { ... } val |
If not equal to uNestingLevel, this item closed out at least one map/array.