simdjson
3.11.0
Ridiculously Fast JSON
|
An implementation of simdjson for a particular CPU architecture. More...
Public Member Functions | |
virtual std::string | name () const |
The name of this implementation. More... | |
virtual std::string | description () const |
The description of this implementation. More... | |
bool | supported_by_runtime_system () const |
The instruction sets this implementation is compiled against and the current CPU match. More... | |
virtual simdjson_warn_unused bool | validate_utf8 (const char *buf, size_t len) const noexcept=0 |
Validate the UTF-8 string. More... | |
An implementation of simdjson for a particular CPU architecture.
Also used to maintain the currently active implementation. The active implementation is automatically initialized on first use to the most advanced implementation supported by the host.
Definition at line 45 of file implementation.h.
|
inlinevirtual |
The description of this implementation.
const implementation *impl = simdjson::get_active_implementation(); cout << "simdjson is optimized for " << impl->name() << "(" << impl->description() << ")" << endl;
Definition at line 66 of file implementation.h.
|
inlinevirtual |
The name of this implementation.
const implementation *impl = simdjson::get_active_implementation(); cout << "simdjson is optimized for " << impl->name() << "(" << impl->description() << ")" << endl;
Definition at line 56 of file implementation.h.
bool simdjson::implementation::supported_by_runtime_system | ( | ) | const |
The instruction sets this implementation is compiled against and the current CPU match.
This function may poll the current CPU/system and should therefore not be called too often if performance is a concern.
|
pure virtualnoexcept |
Validate the UTF-8 string.
Overridden by each implementation.
buf | the string to validate. |
len | the length of the string in bytes. |