bug fix

Dependencies:   HTS221

Embed: (wiki syntax)

« Back to documentation index

cn_cbor Struct Reference

cn_cbor Struct Reference

A CBOR value. More...

#include <cn-cbor.h>

Data Fields

cn_cbor_type type
 The type of value.
cn_cbor_flags flags
 Flags used at parse time.
int length
 Number of children.
struct cn_cborfirst_child
 The first child value.
struct cn_cborlast_child
 The last child value.
struct cn_cbornext
 The sibling after this one, or NULL if this is the last.
struct cn_cborparent
 The parent of this value, or NULL if this is the root.
const uint8_t * bytes
 CN_CBOR_BYTES.
const char * str
 CN_CBOR_TEXT.
int64_t sint
 CN_CBOR_INT.
uint64_t uint
 CN_CBOR_UINT.
double dbl
 CN_CBOR_DOUBLE.
unsigned long count
 for use during parsing

Detailed Description

A CBOR value.

Definition at line 87 of file cn-cbor.h.


Field Documentation

const uint8_t* bytes

CN_CBOR_BYTES.

Definition at line 96 of file cn-cbor.h.

unsigned long count

for use during parsing

Definition at line 106 of file cn-cbor.h.

double dbl

CN_CBOR_DOUBLE.

Definition at line 104 of file cn-cbor.h.

The first child value.

Definition at line 116 of file cn-cbor.h.

Flags used at parse time.

Definition at line 91 of file cn-cbor.h.

The last child value.

Definition at line 118 of file cn-cbor.h.

int length

Number of children.

Note:
: for maps, this is 2x the number of entries

Definition at line 110 of file cn-cbor.h.

struct cn_cbor* next

The sibling after this one, or NULL if this is the last.

Definition at line 120 of file cn-cbor.h.

struct cn_cbor* parent

The parent of this value, or NULL if this is the root.

Definition at line 122 of file cn-cbor.h.

int64_t sint

CN_CBOR_INT.

Definition at line 100 of file cn-cbor.h.

const char* str

CN_CBOR_TEXT.

Definition at line 98 of file cn-cbor.h.

The type of value.

Definition at line 89 of file cn-cbor.h.

uint64_t uint

CN_CBOR_UINT.

Definition at line 102 of file cn-cbor.h.