mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
33 lines
971 B
C++
33 lines
971 B
C++
#ifndef SIMDJSON_FALLBACK_IMPLEMENTATION_H
|
|
#define SIMDJSON_FALLBACK_IMPLEMENTATION_H
|
|
|
|
#include "simdjson/implementation.h"
|
|
|
|
namespace simdjson {
|
|
namespace fallback {
|
|
|
|
namespace {
|
|
using namespace simdjson;
|
|
using namespace simdjson::dom;
|
|
}
|
|
|
|
class implementation final : public simdjson::implementation {
|
|
public:
|
|
simdjson_really_inline implementation() : simdjson::implementation(
|
|
"fallback",
|
|
"Generic fallback implementation",
|
|
0
|
|
) {}
|
|
simdjson_warn_unused error_code create_dom_parser_implementation(
|
|
size_t capacity,
|
|
size_t max_length,
|
|
std::unique_ptr<internal::dom_parser_implementation>& dst
|
|
) const noexcept final;
|
|
simdjson_warn_unused error_code minify(const uint8_t *buf, size_t len, uint8_t *dst, size_t &dst_len) const noexcept final;
|
|
simdjson_warn_unused bool validate_utf8(const char *buf, size_t len) const noexcept final;
|
|
};
|
|
|
|
} // namespace fallback
|
|
} // namespace simdjson
|
|
|
|
#endif // SIMDJSON_FALLBACK_IMPLEMENTATION_H
|