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 43 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 53 of file gp_json_reader.h.
Referenced by gp_json_reader_reset(), gp_json_reader_state_load(), and gp_json_reader_state_save().
void(* gp_json_reader::err_print) (void *err_print_priv, const char *line) |
Handler to print errors and warnings
Definition at line 58 of file gp_json_reader.h.
const char* gp_json_reader::json |
Pointer to a null terminated JSON string
Definition at line 45 of file gp_json_reader.h.
size_t gp_json_reader::len |
A length of the JSON string
Definition at line 47 of file gp_json_reader.h.
Referenced by gp_json_reader_consumed().
unsigned int gp_json_reader::max_depth |
Maximal recursion depth
Definition at line 55 of file gp_json_reader.h.
size_t gp_json_reader::off |
A current offset into the JSON string
Definition at line 49 of file gp_json_reader.h.
Referenced by gp_json_reader_consumed(), gp_json_reader_reset(), and gp_json_reader_state_load().
size_t gp_json_reader::sub_off |
An offset to the start of the last array or object
Definition at line 51 of file gp_json_reader.h.
Referenced by gp_json_reader_reset(), gp_json_reader_state_load(), and gp_json_reader_state_save().