1#include <Foundation/FoundationInternal.h>
2PL_FOUNDATION_INTERNAL_HEADER
4#include <Foundation/Types/Uuid.h>
6#if __has_include(<uuid/uuid.h>)
16static_assert(
sizeof(plUInt64) * 2 ==
sizeof(uuid_t));
23 plUInt64* uiUuidData =
reinterpret_cast<plUInt64*
>(uuid);
25 return plUuid(uiUuidData[1], uiUuidData[0]);
32 PL_REPORT_FAILURE(
"This distro doesn't have support for UUID generation.");
This data type is the abstraction for 128-bit Uuid (also known as GUID) instances.
Definition Uuid.h:11
PL_ALWAYS_INLINE plUuid()=default
Default constructor. Constructed Uuid will be invalid.
static plUuid MakeUuid()
Returns a new Uuid.
Definition UuidGenerator_Posix.h:30