libcbor 0.12.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
Loading...
Searching...
No Matches
_cbor_stack_record Struct Reference

Simple stack record for the parser. More...

#include <stack.h>

Data Fields

struct _cbor_stack_recordlower
 Pointer to the parent stack frame.
 
cbor_item_titem
 Item under construction.
 
size_t subitems
 How many outstanding subitems are expected.
 

Detailed Description

Simple stack record for the parser.

Definition at line 18 of file stack.h.

Field Documentation

◆ item

cbor_item_t* _cbor_stack_record::item

Item under construction.

Definition at line 22 of file stack.h.

◆ lower

struct _cbor_stack_record* _cbor_stack_record::lower

Pointer to the parent stack frame.

Definition at line 20 of file stack.h.

◆ subitems

size_t _cbor_stack_record::subitems

How many outstanding subitems are expected.

For example, when we see a new definite array, subitems is initialized to the array length. With every item added, the counter is decreased. When it reaches zero, the stack is popped and the complete item is propagated upwards.

Definition at line 31 of file stack.h.


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