Mistake on this page?
Report an issue in GitHub or email us
Data Fields
_QCBORItem Struct Reference

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...
 

Detailed Description

QCBORItem holds the type, value and other info for a decoded item returned by GetNextItem().

Definition at line 723 of file qcbor.h.

Field Documentation

UsefulBufC bigNum

The value for uDataType QCBOR_TYPE_DATE_STRING.

Definition at line 744 of file qcbor.h.

UsefulBufC dateString

The value for uDataType QCBOR_TYPE_DATE_EPOCH.

Definition at line 743 of file qcbor.h.

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.

Definition at line 738 of file qcbor.h.

struct { ... } epochDate

The value for uDataType QCBOR_TYPE_DOUBLE.

int64_t int64

The label for uLabelType QCBOR_TYPE_BYTE_STRING and QCBOR_TYPE_TEXT_STRING.

Definition at line 732 of file qcbor.h.

union { ... } label

The union holding the item's value.

Select union member based on uDataType

UsefulBufC string

The value for uDataType QCBOR_TYPE_UINT64.

Definition at line 735 of file qcbor.h.

uint16_t uCount

The value for uDataType QCBOR_TYPE_BYTE_STRING and QCBOR_TYPE_TEXT_STRING.

Definition at line 736 of file qcbor.h.

uint8_t uDataAlloc

Tells what element of the label union to use.

Definition at line 727 of file qcbor.h.

uint64_t uint64

The value for uDataType QCBOR_TYPE_INT64.

The label for uLabelType for QCBOR_TYPE_INT64.

Definition at line 733 of file qcbor.h.

uint8_t uLabelAlloc

1 if allocated with string allocator, 0 if not.

See QCBORDecode_MakeMallocStringAllocator()

Definition at line 728 of file qcbor.h.

uint8_t uLabelType

How deep the nesting from arrays and maps are.

0 is the top level with no arrays or maps entered

Definition at line 726 of file qcbor.h.

uint8_t uNestingLevel

Tells what element of the val union to use.

One of QCBOR_TYPE_XXXX

Definition at line 725 of file qcbor.h.

uint8_t uNextNestLevel

Like uDataAlloc, but for label.

Definition at line 729 of file qcbor.h.

uint8_t uSimple

The value for uDataType QCBOR_TYPE_BIGNUM.

Definition at line 745 of file qcbor.h.

uint64_t uTagBits

Union holding the different label types selected based on uLabelType.

Definition at line 756 of file qcbor.h.

uint64_t uTagV

The integer value for unknown simple types.

Definition at line 746 of file qcbor.h.

union { ... } val

If not equal to uNestingLevel, this item closed out at least one map/array.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.