sdlGuidToString function

void sdlGuidToString(
  1. SdlGuid guid,
  2. Pointer<Int8> pszGuid,
  3. int cbGuid
)

Get an ASCII string representation for a given SDL_GUID.

\param guid the SDL_GUID you wish to convert to string. \param pszGUID buffer in which to write the ASCII string. \param cbGUID the size of pszGUID, should be at least 33 bytes.

\since This function is available since SDL 3.1.3.

\sa SDL_StringToGUID

extern SDL_DECLSPEC void SDLCALL SDL_GUIDToString(SDL_GUID guid, char *pszGUID, int cbGUID)

Implementation

void sdlGuidToString(SdlGuid guid, Pointer<Int8> pszGuid, int cbGuid) {
  final sdlGuidToStringLookupFunction = libSdl3.lookupFunction<
      Void Function(SdlGuid guid, Pointer<Int8> pszGuid, Int32 cbGuid),
      void Function(
          SdlGuid guid, Pointer<Int8> pszGuid, int cbGuid)>('SDL_GUIDToString');
  return sdlGuidToStringLookupFunction(guid, pszGuid, cbGuid);
}