simdjson  3.11.0
Ridiculously Fast JSON
base.h
1 
5 #ifndef SIMDJSON_BASE_H
6 #define SIMDJSON_BASE_H
7 
8 #include "simdjson/common_defs.h"
9 #include "simdjson/compiler_check.h"
10 #include "simdjson/error.h"
11 #include "simdjson/portability.h"
12 #include "simdjson/concepts.h"
13 
17 namespace simdjson {
18 
19 SIMDJSON_PUSH_DISABLE_UNUSED_WARNINGS
20 
22 constexpr size_t SIMDJSON_MAXSIZE_BYTES = 0xFFFFFFFF;
23 
32 constexpr size_t SIMDJSON_PADDING = 64;
33 
39 constexpr size_t DEFAULT_MAX_DEPTH = 1024;
40 
41 SIMDJSON_POP_DISABLE_UNUSED_WARNINGS
42 
43 class implementation;
44 struct padded_string;
45 class padded_string_view;
46 enum class stage1_mode;
47 
48 namespace internal {
49 
50 template<typename T>
51 class atomic_ptr;
52 class dom_parser_implementation;
53 class escape_json_string;
54 class tape_ref;
55 struct value128;
56 enum class tape_type;
57 
58 } // namespace internal
59 } // namespace simdjson
60 
61 #endif // SIMDJSON_BASE_H
An implementation of simdjson for a particular CPU architecture.
User-provided string that promises it has extra padded bytes at the end for use with parser::parse().
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
constexpr SIMDJSON_PUSH_DISABLE_UNUSED_WARNINGS size_t SIMDJSON_MAXSIZE_BYTES
The maximum document size supported by simdjson.
Definition: base.h:22
constexpr size_t DEFAULT_MAX_DEPTH
By default, simdjson supports this many nested objects and arrays.
Definition: base.h:39
stage1_mode
This enum is used with the dom_parser_implementation::stage1 function.
constexpr size_t SIMDJSON_PADDING
The amount of padding needed in a buffer to parse JSON.
Definition: base.h:32
String with extra allocation for ease of use with parser::parse()
Definition: padded_string.h:23