128-bit identifier. Two flavors, both well-formed per RFC 9562:
More...
#include <UUID.hpp>
|
| bool | IsNil () const noexcept |
| |
| char const * | Format (char *buf, size_t bufSize) const noexcept |
| |
|
| uint64_t | hi {0} |
| |
| uint64_t | lo {0} |
| |
128-bit identifier. Two flavors, both well-formed per RFC 9562:
- Generate : version-4 (random) UUID. Use for entity identities. Backed by XorShift128 (fast, not a CSPRNG) - fine for asset ids, not for secrets.
- FromBytes : version-8 (custom) UUID whose payload bits are a deterministic hash of the input. Equal inputs fold to the same id (content addressing); NOT random. The nil id (all-zero, kNilUUID) is reserved for "unset" and is not a valid v4/v8 UUID.
◆ Format()
| char const * Foundation::Core::FUUID::Format |
( |
char * |
buf, |
|
|
size_t |
bufSize |
|
) |
| const |
|
noexcept |
◆ FromBytes()
| FUUID Foundation::Core::FUUID::FromBytes |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
static |
◆ FromString()
| static FUUID Foundation::Core::FUUID::FromString |
( |
std::string_view |
s | ) |
|
|
inlinestatic |
◆ Generate()
| FUUID Foundation::Core::FUUID::Generate |
( |
| ) |
|
|
static |
◆ IsNil()
| bool Foundation::Core::FUUID::IsNil |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator!=
◆ operator<
◆ operator<=
◆ operator==
◆ operator>
◆ operator>=
◆ hi
| uint64_t Foundation::Core::FUUID::hi {0} |
◆ lo
| uint64_t Foundation::Core::FUUID::lo {0} |
The documentation for this struct was generated from the following files: