One open container, replacing an equivalent recursive parser call. More...
Data Fields | |
| void * | ctn |
| void * | tail |
| size_t | len |
| unsigned char | type |
| unsigned char | state |
| unsigned char | is_global |
Detailed Description
One open container, replacing an equivalent recursive parser call.
state 0 permits an initial member or empty closure; state 1 expects an item after a separator; state 2 follows an item. Keeping 1 distinct from 0 is what lets closure distinguish a trailing comma from an empty container.
Definition at line 438 of file jsonbourne.c.
Field Documentation
◆ ctn
| void* jsonbourne_read_frame::ctn |
Object/array payload, NULL during measurement.
Definition at line 439 of file jsonbourne.c.
◆ is_global
| unsigned char jsonbourne_read_frame::is_global |
Brace-less object closes at end of input.
Definition at line 444 of file jsonbourne.c.
◆ len
| size_t jsonbourne_read_frame::len |
Completed/reserved member or element count.
Definition at line 441 of file jsonbourne.c.
◆ state
| unsigned char jsonbourne_read_frame::state |
Initial, after-separator or after-item state.
Definition at line 443 of file jsonbourne.c.
◆ tail
| void* jsonbourne_read_frame::tail |
Last entry for constant-time ordered appends.
Definition at line 440 of file jsonbourne.c.
◆ type
| unsigned char jsonbourne_read_frame::type |
Object or array tag.
Definition at line 442 of file jsonbourne.c.
The documentation for this struct was generated from the following file:
- src/jsonbourne.c