1 #ifndef SIMDJSON_PADDED_STRING_VIEW_INL_H
2 #define SIMDJSON_PADDED_STRING_VIEW_INL_H
4 #include "simdjson/portability.h"
5 #include "simdjson/common_defs.h"
15 : std::string_view(s, len), _capacity(capacity)
25 : std::string_view(s), _capacity(s.capacity())
30 : std::string_view(s), _capacity(capacity)
User-provided string that promises it has extra padded bytes at the end for use with parser::parse().
size_t padding() const noexcept
The amount of padding on the string (capacity() - length())
size_t capacity() const noexcept
The number of allocated bytes.
padded_string_view() noexcept=default
Create an empty padded_string_view.
We want to support argument-dependent lookup (ADL).