Per-read budgets checked during validation, before a DOM is allocated. More...
#include <jsonbourne.h>
Data Fields | |
| size_t | max_depth |
| size_t | max_input_len |
| size_t | max_memory |
| size_t | max_vals |
| size_t | max_str_len |
Detailed Description
Per-read budgets checked during validation, before a DOM is allocated.
Limits are literal upper bounds: zero permits none of the resource, not an unlimited amount. Start with jsonbourne_read_limits_default() so a partially initialized structure cannot accidentally prohibit useful input.
Definition at line 303 of file jsonbourne.h.
Field Documentation
◆ max_depth
| size_t jsonbourne_read_limits::max_depth |
Open containers; cannot exceed the compiled reader limit.
Definition at line 304 of file jsonbourne.h.
◆ max_input_len
| size_t jsonbourne_read_limits::max_input_len |
Entire input extent in bytes, including trivia.
Definition at line 305 of file jsonbourne.h.
◆ max_memory
| size_t jsonbourne_read_limits::max_memory |
Combined DOM record and text bytes, not total process memory.
Definition at line 306 of file jsonbourne.h.
◆ max_str_len
| size_t jsonbourne_read_limits::max_str_len |
Decoded bytes in each string/key, excluding its terminator.
Definition at line 308 of file jsonbourne.h.
◆ max_vals
| size_t jsonbourne_read_limits::max_vals |
Root plus nested values; member keys are not values.
Definition at line 307 of file jsonbourne.h.
The documentation for this struct was generated from the following file:
- src/jsonbourne.h