GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Fields
gp_json_reader Struct Reference

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)
 

Detailed Description

A JSON parser internal state.

Definition at line 29 of file gp_json_reader.h.

Field Documentation

◆ depth

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().

◆ err_print

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.

◆ json

const char* gp_json_reader::json

Pointer to a null terminated JSON string

Definition at line 31 of file gp_json_reader.h.

◆ len

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().

◆ max_depth

unsigned int gp_json_reader::max_depth

Maximal recursion depth

Definition at line 41 of file gp_json_reader.h.

◆ off

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().

◆ sub_off

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().


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