|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
State of one decoding pass over the tokens. More...
Data Fields | |
| const char * | s |
| const tok_t * | t |
| uint8_t * | base |
| size_t | used |
| size_t | cap |
| char * | err |
| size_t | err_size |
| bool | failed |
| name_at_t * | names |
| uint32_t | name_count |
State of one decoding pass over the tokens.
| uint8_t* dec_t::base |
NULL while sizing
| size_t dec_t::cap |
the block's size; 0 while sizing
| char* dec_t::err |
receives the reason, or NULL
| size_t dec_t::err_size |
size of err, bytes
| bool dec_t::failed |
a reason was set; decoding stops
| uint32_t dec_t::name_count |
number of entries in names
| name_at_t* dec_t::names |
the model names, sorted; NULL while sizing
| const char* dec_t::s |
the JSON text
| const tok_t* dec_t::t |
the tokens of the text
| size_t dec_t::used |
bytes taken from the block so far