simdjson 4.0.7
Ridiculously Fast JSON
Loading...
Searching...
No Matches
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#include "simdjson/constevalutil.h"
14
18namespace simdjson {
19
20SIMDJSON_PUSH_DISABLE_UNUSED_WARNINGS
21
23constexpr size_t SIMDJSON_MAXSIZE_BYTES = 0xFFFFFFFF;
24
33constexpr size_t SIMDJSON_PADDING = 64;
34
40constexpr size_t DEFAULT_MAX_DEPTH = 1024;
41
42SIMDJSON_POP_DISABLE_UNUSED_WARNINGS
43
44class implementation;
45struct padded_string;
47enum class stage1_mode;
48
49namespace internal {
50
51template<typename T>
52class atomic_ptr;
53class dom_parser_implementation;
54class escape_json_string;
55class tape_ref;
56struct value128;
57enum class tape_type;
58
59} // namespace internal
60} // namespace simdjson
61
62#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 size_t DEFAULT_MAX_DEPTH
By default, simdjson supports this many nested objects and arrays.
Definition base.h:40
SIMDJSON_PUSH_DISABLE_UNUSED_WARNINGS constexpr size_t SIMDJSON_MAXSIZE_BYTES
The maximum document size supported by simdjson.
Definition base.h:23
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:33
String with extra allocation for ease of use with parser::parse()