A GUID is a 128-bit value that represents something that is uniquely identifiable by this value: "globally unique.".
More...
|
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...
|
|
SDL provides functions to convert a GUID to/from a string.
◆ GUIDToString()
void SDL::GUIDToString |
( |
SDL_GUID |
guid, |
|
|
char * |
pszGUID, |
|
|
int |
cbGUID |
|
) |
| |
|
inline |
- Parameters
-
guid | the SDL_GUID you wish to convert to string. |
pszGUID | buffer in which to write the ASCII string. |
cbGUID | the 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()
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
-
pchGUID | string 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