libcbor 0.12.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
|
Simple stack record for the parser. More...
#include <stack.h>
Data Fields | |
struct _cbor_stack_record * | lower |
Pointer to the parent stack frame. | |
cbor_item_t * | item |
Item under construction. | |
size_t | subitems |
How many outstanding subitems are expected. | |
cbor_item_t* _cbor_stack_record::item |
struct _cbor_stack_record* _cbor_stack_record::lower |
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.