Orcus
Loading...
Searching...
No Matches
orcus::json::parser_thread Class Reference

Public Member Functions

 parser_thread (const char *p, size_t n, size_t min_token_size)
 
 parser_thread (const char *p, size_t n, size_t min_token_size, size_t max_token_size)
 
void start ()
 
bool next_tokens (parse_tokens_t &tokens)
 
parser_stats get_stats () const
 
void swap_string_pool (string_pool &pool)
 

Member Function Documentation

◆ next_tokens()

bool orcus::json::parser_thread::next_tokens ( parse_tokens_t & tokens)

Wait until new set of tokens becomes available.

Parameters
tokensnew set of tokens.
Returns
true if the parsing is still in progress (therefore more tokens to come), false if it's done i.e. this is the last token set.