D3ltaQ's picture
Upload 2197 files
24b81cb verified
raw
history blame contribute delete
447 Bytes
class UUIDApi
{
/**
\brief Creates a 128bit UUID using system APIs
@code
int uuid[4];
UUIDApi.Generate(uuid);
@endcode
*/
static proto void Generate(inout int id[4]);
/**
\brief Output the UUID as standard format string (eg. 123e4567-e89b-12d3-a456-426655440000)
@code
int uuid[4];
Print(UUIDApi.FormatString(uuid));
>> "123e4567-e89b-12d3-a456-426655440000"
@endcode
*/
static proto string FormatString(int id[4]);
};