simdjson  3.7.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 
16 namespace simdjson {
17 
18 SIMDJSON_PUSH_DISABLE_UNUSED_WARNINGS
19 
21 constexpr size_t SIMDJSON_MAXSIZE_BYTES = 0xFFFFFFFF;
22 
31 constexpr size_t SIMDJSON_PADDING = 64;
32 
38 constexpr size_t DEFAULT_MAX_DEPTH = 1024;
39 
40 SIMDJSON_POP_DISABLE_UNUSED_WARNINGS
41 
42 class implementation;
43 struct padded_string;
44 class padded_string_view;
45 enum class stage1_mode;
46 
47 namespace internal {
48 
49 template<typename T>
50 class atomic_ptr;
51 class dom_parser_implementation;
52 class escape_json_string;
53 class tape_ref;
54 struct value128;
55 enum class tape_type;
56 
57 } // namespace internal
58 } // namespace simdjson
59 
60 #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:21
constexpr size_t DEFAULT_MAX_DEPTH
By default, simdjson supports this many nested objects and arrays.
Definition: base.h:38
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:31
String with extra allocation for ease of use with parser::parse()
Definition: padded_string.h:23