 |
simdjson
0.9.0
Ridiculously Fast JSON
|
1 #ifndef SIMDJSON_PADDED_STRING_VIEW_H
2 #define SIMDJSON_PADDED_STRING_VIEW_H
4 #include "simdjson/portability.h"
5 #include "simdjson/common_defs.h"
6 #include "simdjson/error.h"
55 inline
size_t capacity() const noexcept;
58 inline
size_t padding() const noexcept;
62 #if SIMDJSON_EXCEPTIONS
77 #endif // SIMDJSON_PADDED_STRING_VIEW_H
size_t padding() const noexcept
The amount of padding on the string (capacity() - length())
The result of a simdjson operation that could fail.
padded_string_view() noexcept=default
Create an empty padded_string_view.
size_t capacity() const noexcept
The number of allocated bytes.
User-provided string that promises it has extra padded bytes at the end for use with parser::parse().