simdjson  3.1.6
Ridiculously Fast JSON
implementation.h
1 #ifndef SIMDJSON_PPC64_IMPLEMENTATION_H
2 #define SIMDJSON_PPC64_IMPLEMENTATION_H
3 
4 #include "simdjson/base.h"
5 #include "simdjson/internal/isadetection.h"
6 
7 namespace simdjson {
8 namespace ppc64 {
9 
10 namespace {
11 using namespace simdjson;
12 using namespace simdjson::dom;
13 } // namespace
14 
18 class implementation final : public simdjson::implementation {
19 public:
20  simdjson_inline implementation()
21  : simdjson::implementation("ppc64", "PPC64 ALTIVEC",
22  internal::instruction_set::ALTIVEC) {}
23  simdjson_warn_unused error_code create_dom_parser_implementation(
24  size_t capacity, size_t max_length,
25  std::unique_ptr<internal::dom_parser_implementation> &dst)
26  const noexcept final;
27  simdjson_warn_unused error_code minify(const uint8_t *buf, size_t len,
28  uint8_t *dst,
29  size_t &dst_len) const noexcept final;
30  simdjson_warn_unused bool validate_utf8(const char *buf,
31  size_t len) const noexcept final;
32 };
33 
34 } // namespace ppc64
35 } // namespace simdjson
36 
37 #endif // SIMDJSON_PPC64_IMPLEMENTATION_H
An implementation of simdjson for a particular CPU architecture.
virtual simdjson_warn_unused bool validate_utf8(const char *buf, size_t len) const noexcept=0
Validate the UTF-8 string.
We want to support argument-dependent lookup (ADL).
error_code
All possible errors returned by simdjson.
Definition: error.h:17
std::string minify(T x)
Minifies a JSON element or document, printing the smallest possible valid JSON.