simdjson  3.11.0
Ridiculously Fast JSON
implementation.h
1 #ifndef SIMDJSON_ARM64_IMPLEMENTATION_H
2 #define SIMDJSON_ARM64_IMPLEMENTATION_H
3 
4 #ifndef SIMDJSON_CONDITIONAL_INCLUDE
5 #include "simdjson/base.h"
6 #include "simdjson/implementation.h"
7 #include "simdjson/internal/instruction_set.h"
8 #endif // SIMDJSON_CONDITIONAL_INCLUDE
9 
10 namespace simdjson {
11 namespace arm64 {
12 
16 class implementation final : public simdjson::implementation {
17 public:
18  simdjson_inline implementation() : simdjson::implementation("arm64", "ARM NEON", internal::instruction_set::NEON) {}
19  simdjson_warn_unused error_code create_dom_parser_implementation(
20  size_t capacity,
21  size_t max_length,
22  std::unique_ptr<internal::dom_parser_implementation>& dst
23  ) const noexcept final;
24  simdjson_warn_unused error_code minify(const uint8_t *buf, size_t len, uint8_t *dst, size_t &dst_len) const noexcept final;
25  simdjson_warn_unused bool validate_utf8(const char *buf, size_t len) const noexcept final;
26 };
27 
28 } // namespace arm64
29 } // namespace simdjson
30 
31 #endif // SIMDJSON_ARM64_IMPLEMENTATION_H
An implementation of simdjson for a particular CPU architecture.
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson_warn_unused bool validate_utf8(const char *buf, size_t len) noexcept
Validate the UTF-8 string.
error_code
All possible errors returned by simdjson.
Definition: error.h:19
std::string minify(T x)
Minifies a JSON element or document, printing the smallest possible valid JSON.