CryGUID

Globally Unique Identifier binary compatible with standard 128bit GUID. More...

#include

Public Member Functions

constexpr CryGUID (const CryGUID &rhs)
constexpr CryGUID (const uint64 &hipart_, const uint64 &lopart_)
constexpr bool IsNull () const
constexpr bool operator== (const CryGUID &rhs) const
constexpr bool operator!= (const CryGUID &rhs) const
constexpr bool operator< (const CryGUID &rhs) const
constexpr bool operator> (const CryGUID &rhs) const
constexpr bool operator<= (const CryGUID &rhs) const
constexpr bool operator>= (const CryGUID &rhs) const
void ToString (char *output, size_t const output_size_in_bytes) const
template<:size_t n>
void ToString (char(&ar)[N]) const
string ToString () const
const char * ToDebugString () const

Static Public Member Functions

static constexpr CryGUID Construct (const uint64 &hipart, const uint64 &lopart)
static constexpr CryGUID Construct (uint32 d1, uint16 d2, uint16 d3, uint8 d4[8])
static constexpr CryGUID Construct (uint32 d1, uint16 d2, uint16 d3, uint8 d4_0, uint8 d4_1, uint8 d4_2, uint8 d4_3, uint8 d4_4, uint8 d4_5, uint8 d4_6, uint8 d4_7)
static CryGUID Create ()
static constexpr CryGUID Null ()
static constexpr CryGUID FromStringInternal (const char *szInput)
static CryGUID FromString (const char *szGuidAsString)
static bool SerializeAsNumber (Serialization::IArchive &ar, CryGUID &guid)
Serialize GUID as a two 64bit unsigned integers.
static bool SerializeAsString (Serialization::IArchive &archive, CryGUID &guid, const char *szName, const char *szLabel)
Serialize GUID as a string in form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.

Public Attributes

uint64 hipart
uint64 lopart

Detailed Description

Globally Unique Identifier binary compatible with standard 128bit GUID.

Member Function Documentation

◆ ToDebugString()

const char* CryGUID::ToDebugString ( ) const
inline

Returns a character string used for Debugger Visualization or log messages. Do not use this method in runtime code.

◆ ToString()

void CryGUID::ToString ( char * output,
size_t const output_size_in_bytes
) const
inline

Write GUID to zero terminated character array. Require 36 bytes