A GUID is a 128-bit value that represents something that is uniquely identifiable by this value: "globally unique.".
More...
|
struct | SDL::GUID |
| An GUID is a 128-bit identifier for an input device that identifies that device across runs of SDL programs on the same platform. More...
|
|
|
using | SDL::GUIDRaw = SDL_GUID |
| Alias to raw representation for GUID.
|
|
SDL provides functions to convert a GUID to/from a string.
◆ GUIDToString()
std::string SDL::GUIDToString |
( |
const GUIDRaw & |
guid | ) |
|
|
inline |
- Parameters
-
guid | the GUID you wish to convert to string. |
- Returns
- ASCII string.
- Thread safety:
- It is safe to call this function from any thread.
- Since
- This function is available since SDL 3.2.0.
- See also
- GUID.GUID
◆ 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 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
- GUID.ToString
◆ ToString()
std::string SDL::GUID::ToString |
( |
| ) |
const |
|
inline |
- Returns
- ASCII string.
- Thread safety:
- It is safe to call this function from any thread.
- Since
- This function is available since SDL 3.2.0.
- See also
- GUID.GUID