#pragma once #include #include struct rb32 { std::array data; constexpr operator std::string_view() const { return std::string_view(data.data(), data.size()); } }; constexpr rb32 operator""_rb32(unsigned long long v) { return rb32{{ static_cast(v & 0xff), static_cast((v >> 8) & 0xff), static_cast((v >> 16) & 0xff), static_cast((v >> 24) & 0xff) }}; } constexpr std::string_view operator""_rb(const char* a, size_t len) { return std::string_view(a, len); }