|
|
@ -75,17 +75,13 @@ extern const Uuid kNilGuid; |
|
|
|
|
|
|
|
|
|
|
|
// Using 'Guid' here instead of 'Uuid' to avoid name clash with windows API =(
|
|
|
|
// Using 'Guid' here instead of 'Uuid' to avoid name clash with windows API =(
|
|
|
|
|
|
|
|
|
|
|
|
Uuid GuidGenerate (); |
|
|
|
|
|
|
|
void GuidClear (Uuid * uuid); |
|
|
|
|
|
|
|
bool GuidFromString (const wchar_t str[], Uuid * uuid); |
|
|
|
bool GuidFromString (const wchar_t str[], Uuid * uuid); |
|
|
|
bool GuidFromString (const char str[], Uuid * uuid); |
|
|
|
bool GuidFromString (const char str[], Uuid * uuid); |
|
|
|
int GuidCompare (const Uuid & a, const Uuid & b); |
|
|
|
int GuidCompare (const Uuid & a, const Uuid & b); |
|
|
|
inline bool GuidsAreEqual (const Uuid & a, const Uuid & b) { return 0 == GuidCompare(a, b); } |
|
|
|
inline bool GuidsAreEqual (const Uuid & a, const Uuid & b) { return 0 == GuidCompare(a, b); } |
|
|
|
bool GuidIsNil (const Uuid & uuid); |
|
|
|
bool GuidIsNil (const Uuid & uuid); |
|
|
|
unsigned GuidHash (const Uuid & uuid); |
|
|
|
|
|
|
|
const wchar_t * GuidToString (const Uuid & uuid, wchar_t * dst, unsigned chars); // returns dst
|
|
|
|
const wchar_t * GuidToString (const Uuid & uuid, wchar_t * dst, unsigned chars); // returns dst
|
|
|
|
const char * GuidToString (const Uuid & uuid, char * dst, unsigned chars); // returns dst
|
|
|
|
const char * GuidToString (const Uuid & uuid, char * dst, unsigned chars); // returns dst
|
|
|
|
const wchar_t * GuidToHex (const Uuid & uuid, wchar_t * dst, unsigned chars); // returns dst
|
|
|
|
|
|
|
|
bool GuidFromHex (const uint8_t buf[], unsigned length, Uuid * uuid); |
|
|
|
bool GuidFromHex (const uint8_t buf[], unsigned length, Uuid * uuid); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|