6#ifndef PRISM_STRINGY_HPP
7#define PRISM_STRINGY_HPP
9#include "prism/compiler/cplusplus.hpp"
10#include "prism/compiler/lifetimebound.hpp"
24[[nodiscard]]
inline std::string_view
std::string_view view(const pm_buffer_t *buffer) noexcept
The bytes written to the given buffer so far.
Definition buffer.hpp:49
A view of a sequence of bytes owned by someone else.
PRISM_EXPORTED_FUNCTION size_t pm_string_length(const pm_string_t *string) PRISM_NONNULL(1)
Returns the length associated with the string.
PRISM_EXPORTED_FUNCTION const uint8_t * pm_string_source(const pm_string_t *string) PRISM_NONNULL(1)
Returns the start pointer associated with the string.
A view of a sequence of bytes.
Definition stringy.h:23