6#ifndef PRISM_STRINGY_HPP
7#define PRISM_STRINGY_HPP
24[[nodiscard]]
inline std::string_view
26 return std::string_view(
reinterpret_cast<const char *
>(pm_string_source(&
string)), pm_string_length(&
string));
std::string_view view(const pm_buffer_t *buffer PRISM_LIFETIMEBOUND) noexcept
The bytes written to the given buffer so far.
#define PRISM_LIFETIMEBOUND
Mark a parameter that the return value points into, so that the compiler warns if a temporary is pass...
A view of a sequence of bytes owned by someone else.
A view of a sequence of bytes.