simdjson 4.2.4
Ridiculously Fast JSON
Loading...
Searching...
No Matches
implementation.h
1#ifndef SIMDJSON_PPC64_IMPLEMENTATION_H
2#define SIMDJSON_PPC64_IMPLEMENTATION_H
3
4#ifndef SIMDJSON_CONDITIONAL_INCLUDE
5#include "simdjson/ppc64/base.h"
6#include "simdjson/implementation.h"
7#include "simdjson/internal/instruction_set.h"
8#endif // SIMDJSON_CONDITIONAL_INCLUDE
9
10namespace simdjson {
11
15namespace ppc64 {
16
20class implementation final : public simdjson::implementation {
21public:
22 simdjson_inline implementation()
23 : simdjson::implementation("ppc64", "PPC64 ALTIVEC",
24 internal::instruction_set::ALTIVEC) {}
25
26 simdjson_warn_unused error_code create_dom_parser_implementation(
27 size_t capacity, size_t max_length,
28 std::unique_ptr<internal::dom_parser_implementation> &dst)
29 const noexcept final;
30 simdjson_warn_unused error_code minify(const uint8_t *buf, size_t len,
31 uint8_t *dst,
32 size_t &dst_len) const noexcept final;
33 simdjson_warn_unused bool validate_utf8(const char *buf,
34 size_t len) const noexcept final;
35};
36
37} // namespace ppc64
38} // namespace simdjson
39
40#endif // SIMDJSON_PPC64_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.