nw::Resref

struct Resref

nw::Resref names a resource.

Public Types

using size_type = size_t

Public Functions

Resref()
Resref(const Resref&) = default
template<size_t N>
Resref(std::array<char, N> string) noexcept
Resref(const char *string) noexcept
Resref(StringView string) noexcept
Resref &operator=(const Resref&) = default
bool empty() const noexcept

Checks if the underlying array has no non-null characters.

size_type length() const noexcept

Returns the number of char elements in the array, excluding nulls.

String string() const

Creates String of underlying array.

StringView view() const noexcept

Creates StringView of underlying array without null padding.

Public Static Attributes

static constexpr size_type maximum_size = 4096