rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
dec_t Struct Reference

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

Detailed Description

State of one decoding pass over the tokens.

Field Documentation

◆ base

uint8_t* dec_t::base

NULL while sizing

◆ cap

size_t dec_t::cap

the block's size; 0 while sizing

◆ err

char* dec_t::err

receives the reason, or NULL

◆ err_size

size_t dec_t::err_size

size of err, bytes

◆ failed

bool dec_t::failed

a reason was set; decoding stops

◆ name_count

uint32_t dec_t::name_count

number of entries in names

◆ names

name_at_t* dec_t::names

the model names, sorted; NULL while sizing

◆ s

const char* dec_t::s

the JSON text

◆ t

const tok_t* dec_t::t

the tokens of the text

◆ used

size_t dec_t::used

bytes taken from the block so far


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