simdjson  3.11.0
Ridiculously Fast JSON
jsonioutil.h
1 #ifndef SIMDJSON_JSONIOUTIL_H
2 #define SIMDJSON_JSONIOUTIL_H
3 
4 #include "simdjson/base.h"
5 #include "simdjson/padded_string.h"
6 
7 #include "simdjson/padded_string-inl.h"
8 
9 namespace simdjson {
10 
11 #if SIMDJSON_EXCEPTIONS
12 #ifndef SIMDJSON_DISABLE_DEPRECATED_API
13 [[deprecated("Use padded_string::load() instead")]]
14 inline padded_string get_corpus(const char *path) {
15  return padded_string::load(path);
16 }
17 #endif // SIMDJSON_DISABLE_DEPRECATED_API
18 #endif // SIMDJSON_EXCEPTIONS
19 
20 } // namespace simdjson
21 
22 #endif // SIMDJSON_JSONIOUTIL_H
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
static simdjson_result< padded_string > load(std::string_view path) noexcept
Load this padded string from a file.