simdjson: include/simdjson/base.h Source File

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

19

20SIMDJSON_PUSH_DISABLE_UNUSED_WARNINGS

21

24

34

41

42SIMDJSON_POP_DISABLE_UNUSED_WARNINGS

43

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}

60}

61

62#endif

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.

constexpr size_t DEFAULT_MAX_DEPTH

By default, simdjson supports this many nested objects and arrays.

SIMDJSON_PUSH_DISABLE_UNUSED_WARNINGS constexpr size_t SIMDJSON_MAXSIZE_BYTES

The maximum document size supported by simdjson.

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.

String with extra allocation for ease of use with parser::parse()