Greenbone Vulnerability Management Libraries 22.32.0
gvm_json_pull_parser_t Struct Reference

A json pull parser. More...

#include <jsonpull.h>

Collaboration diagram for gvm_json_pull_parser_t:
Collaboration graph

Data Fields

GQueue * path
 Path to the current value.
gvm_json_path_elem_tpath_add
 Path elem to add in next step.
gvm_json_pull_expect_t expect
 Current expected token.
int keyword_pos
 Position in a keyword like "true" or "null".
FILE * input_stream
 Input stream.
char * read_buffer
 Stream reading buffer.
size_t read_buffer_size
 Size of the stream reading buffer.
size_t last_read_size
 Size of last stream read.
int last_read_char
 Character last read from stream.
size_t read_pos
 Position in current read.
GString * parse_buffer
 Buffer for parsing values and object keys.
size_t parse_buffer_limit
 Maximum parse buffer size.

Detailed Description

A json pull parser.

Definition at line 85 of file jsonpull.h.

Field Documentation

◆ expect

◆ input_stream

FILE* gvm_json_pull_parser_t::input_stream

Input stream.

Definition at line 91 of file jsonpull.h.

Referenced by Ensure(), gvm_json_pull_parser_init_full(), and gvm_json_pull_parser_next_char().

◆ keyword_pos

int gvm_json_pull_parser_t::keyword_pos

Position in a keyword like "true" or "null".

Definition at line 90 of file jsonpull.h.

◆ last_read_char

◆ last_read_size

size_t gvm_json_pull_parser_t::last_read_size

Size of last stream read.

Definition at line 94 of file jsonpull.h.

Referenced by gvm_json_pull_parser_next_char().

◆ parse_buffer

◆ parse_buffer_limit

size_t gvm_json_pull_parser_t::parse_buffer_limit

Maximum parse buffer size.

Definition at line 98 of file jsonpull.h.

Referenced by Ensure(), gvm_json_pull_check_parse_buffer_size(), gvm_json_pull_expand_container(), and gvm_json_pull_parser_init_full().

◆ path

◆ path_add

gvm_json_path_elem_t* gvm_json_pull_parser_t::path_add

Path elem to add in next step.

Definition at line 88 of file jsonpull.h.

Referenced by gvm_json_pull_expand_container(), gvm_json_pull_parse_value(), and gvm_json_pull_parser_next().

◆ read_buffer

char* gvm_json_pull_parser_t::read_buffer

Stream reading buffer.

Definition at line 92 of file jsonpull.h.

Referenced by gvm_json_pull_parser_cleanup(), gvm_json_pull_parser_init_full(), and gvm_json_pull_parser_next_char().

◆ read_buffer_size

size_t gvm_json_pull_parser_t::read_buffer_size

Size of the stream reading buffer.

Definition at line 93 of file jsonpull.h.

Referenced by Ensure(), gvm_json_pull_parser_init_full(), and gvm_json_pull_parser_next_char().

◆ read_pos

size_t gvm_json_pull_parser_t::read_pos

Position in current read.

Definition at line 96 of file jsonpull.h.

Referenced by gvm_json_pull_parser_next_char().


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