GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A JSON parser internal state. More...
#include <gp_json_reader.h>
Data Fields | |
const char * | json |
size_t | len |
size_t | off |
size_t | sub_off |
unsigned int | depth |
unsigned int | max_depth |
void(* | err_print )(void *err_print_priv, const char *line) |
A JSON parser internal state.
Definition at line 29 of file gp_json_reader.h.
unsigned int gp_json_reader::depth |
Recursion depth increased when array/object is entered decreased on leave
Definition at line 39 of file gp_json_reader.h.
Referenced by gp_json_reset(), and gp_json_state_load().
void(* gp_json_reader::err_print) (void *err_print_priv, const char *line) |
Handler to print errors and warnings
Definition at line 44 of file gp_json_reader.h.
const char* gp_json_reader::json |
Pointer to a null terminated JSON string
Definition at line 31 of file gp_json_reader.h.
size_t gp_json_reader::len |
A length of the JSON string
Definition at line 33 of file gp_json_reader.h.
Referenced by gp_json_empty().
unsigned int gp_json_reader::max_depth |
Maximal recursion depth
Definition at line 41 of file gp_json_reader.h.
size_t gp_json_reader::off |
A current offset into the JSON string
Definition at line 35 of file gp_json_reader.h.
Referenced by gp_json_empty(), gp_json_reset(), and gp_json_state_load().
size_t gp_json_reader::sub_off |
An offset to the start of the last array or object
Definition at line 37 of file gp_json_reader.h.
Referenced by gp_json_reset(), and gp_json_state_load().