#include "narrow.hh"
#include <cassert>
#include <cstdint>
#include <type_traits>
Go to the source code of this file.
|
using | String32 = std::conditional_t<(sizeof(char *) > sizeof(uint32_t)), uint32_t, const char * > |
|
|
constexpr void | toString32 (const char *buffer, const char *str, uint32_t &result) |
|
constexpr void | toString32 (const char *, const char *str, const char *&result) |
|
constexpr const char * | fromString32 (const char *buffer, uint32_t str32) |
|
constexpr const char * | fromString32 (const char *, const char *str32) |
|
◆ String32
using String32 = std::conditional_t< (sizeof(char*) > sizeof(uint32_t)), uint32_t, const char*> |
◆ fromString32() [1/2]
constexpr const char * fromString32 |
( |
const char * |
, |
|
|
const char * |
str32 |
|
) |
| |
|
constexpr |
◆ fromString32() [2/2]
constexpr const char * fromString32 |
( |
const char * |
buffer, |
|
|
uint32_t |
str32 |
|
) |
| |
|
constexpr |
◆ toString32() [1/2]
constexpr void toString32 |
( |
const char * |
, |
|
|
const char * |
str, |
|
|
const char *& |
result |
|
) |
| |
|
constexpr |
◆ toString32() [2/2]
constexpr void toString32 |
( |
const char * |
buffer, |
|
|
const char * |
str, |
|
|
uint32_t & |
result |
|
) |
| |
|
constexpr |