20 (
sizeof(
char*) >
sizeof(uint32_t)),
25constexpr void toString32(
const char* buffer,
const char* str, uint32_t& result) {
26 assert(buffer <= str);
27 result = narrow<uint32_t>(str - buffer);
29constexpr void toString32(
const char* ,
const char* str,
const char*& result) {
34[[nodiscard]]
constexpr const char*
fromString32(
const char* buffer, uint32_t str32) {
35 return buffer + str32;
37[[nodiscard]]
constexpr const char*
fromString32(
const char* ,
const char* str32) {
constexpr const char * fromString32(const char *buffer, uint32_t str32)
constexpr void toString32(const char *buffer, const char *str, uint32_t &result)
std::conditional_t<(sizeof(char *) > sizeof(uint32_t)), uint32_t, const char * > String32