23        constexpr explicit Guid(std::array<u8, 16> d)
 
 
   31                static_cast<u8>((a >> 24) & 0xFF),
 
   32                static_cast<u8>((a >> 16) & 0xFF),
 
   33                static_cast<u8>((a >> 8) & 0xFF),
 
   34                static_cast<u8>(a & 0xFF),
 
   36                static_cast<u8>((b >> 8) & 0xFF),
 
   37                static_cast<u8>(b & 0xFF),
 
   39                static_cast<u8>((c >> 8) & 0xFF),
 
   40                static_cast<u8>(c & 0xFF),
 
   42                static_cast<u8>((d >> 8) & 0xFF),
 
   43                static_cast<u8>(d & 0xFF),
 
   45                static_cast<u8>((e >> 40) & 0xFF),
 
   46                static_cast<u8>((e >> 32) & 0xFF),
 
   47                static_cast<u8>((e >> 24) & 0xFF),
 
   48                static_cast<u8>((e >> 16) & 0xFF),
 
   49                static_cast<u8>((e >> 8) & 0xFF),
 
   50                static_cast<u8>(e & 0xFF),
 
 
   56        [[nodiscard]] 
static std::optional<Guid> 
generate();
 
 
   63    [[nodiscard]] std::optional<Guid> 
guid_from(
const std::string& str);
 
#define ASSERT(x)
Assert that a value is true.
 
#define ADD_CATCH_FORMATTER_DEF(TYPE)
 
std::string string_from(const An &a)
 
bool operator!=(const Guid &lhs, const Guid &rhs)
 
constexpr Guid nil_guid
A nil guid, all bits are set to 0.
 
std::optional< Guid > guid_from(const std::string &str)
Parse a guid from a string.
 
bool operator==(const Guid &lhs, const Guid &rhs)
 
Represents a universally unique identifier.
 
Guid()=default
Does nothing.
 
static std::optional< Guid > generate()
 
std::array< u8, 16 > data
 
constexpr Guid(u32 a, u16 b, u16 c, u16 d, u64 e)
 
constexpr Guid(std::array< u8, 16 > d)
Set the guid data.