SDL3pp
A slim C++ wrapper for SDL3
All Classes Namespaces Functions Variables Typedefs Modules Pages Concepts
Classes | Functions

A GUID is a 128-bit value that represents something that is uniquely identifiable by this value: "globally unique.". More...

Classes

struct  SDL::GUID
 A GUID is a 128-bit identifier for an input device that identifies that device across runs of SDL programs on the same platform. More...
 

Functions

void SDL::GUIDToString (SDL_GUID guid, char *pszGUID, int cbGUID)
 Get an ASCII string representation for a given SDL_GUID.
 
SDL_GUID SDL::StringToGUID (StringParam pchGUID)
 Convert a GUID string into a SDL_GUID structure.
 

Detailed Description

SDL provides functions to convert a GUID to/from a string.

Function Documentation

◆ GUIDToString()

void SDL::GUIDToString ( SDL_GUID  guid,
char *  pszGUID,
int  cbGUID 
)
inline
Parameters
guidthe SDL_GUID you wish to convert to string.
pszGUIDbuffer in which to write the ASCII string.
cbGUIDthe size of pszGUID, should be at least 33 bytes.
Thread safety:
It is safe to call this function from any thread.
Since
This function is available since SDL 3.2.0.
See also
SDL_StringToGUID

◆ StringToGUID()

SDL_GUID SDL::StringToGUID ( StringParam  pchGUID)
inline

Performs no error checking. If this function is given a string containing an invalid GUID, the function will silently succeed, but the GUID generated will not be useful.

Parameters
pchGUIDstring containing an ASCII representation of a GUID.
Returns
a SDL_GUID structure.
Thread safety:
It is safe to call this function from any thread.
Since
This function is available since SDL 3.2.0.
See also
SDL_GUIDToString