22 if (len_ > 0) std::memcpy(buf_.get(), text.data(), len_);
25 [[nodiscard]] std::string_view
view() const noexcept {
return {buf_.get(), len_}; }
26 [[nodiscard]]
const char*
data() const noexcept {
return buf_.get(); }
27 [[nodiscard]] std::size_t
size() const noexcept {
return len_; }
30 std::unique_ptr<char[]> buf_;
void assign(std::string_view text)
Definition padded_json.hpp:21
const char * data() const noexcept
Definition padded_json.hpp:28
std::string_view view() const noexcept
Definition padded_json.hpp:27
std::size_t size() const noexcept
Definition padded_json.hpp:29
Hot-path connector concepts (6.2).
constexpr std::size_t kJsonPadding
Parsers that hand raw text frames to simdjson need SIMDJSON_PADDING (64) readable bytes after the pay...
Definition feed.hpp:87