openMSX
Typedefs | Functions
String32.hh File Reference
#include "narrow.hh"
#include <cassert>
#include <cstdint>
#include <type_traits>
Include dependency graph for String32.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using String32 = std::conditional_t<(sizeof(char *) > sizeof(uint32_t)), uint32_t, const char * >
 

Functions

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)
 

Typedef Documentation

◆ String32

using String32 = std::conditional_t< (sizeof(char*) > sizeof(uint32_t)), uint32_t, const char*>

Definition at line 19 of file String32.hh.

Function Documentation

◆ fromString32() [1/2]

constexpr const char * fromString32 ( const char *  ,
const char *  str32 
)
constexpr

Definition at line 37 of file String32.hh.

◆ 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

Definition at line 29 of file String32.hh.

◆ toString32() [2/2]

constexpr void toString32 ( const char *  buffer,
const char *  str,
uint32_t &  result 
)
constexpr

Definition at line 25 of file String32.hh.

Referenced by openmsx::DBParser::start().