|
enum | Variant {
VAR_UNKNOWN = -1
, VAR_NCS = 0
, VAR_RFC_4122 = 2
, VAR_MICROSOFT = 6
,
VAR_RESERVED = 7
} |
|
enum | Version {
VER_UNKNOWN = -1
, VER_TIME = 1
, VER_DCE = 2
, VER_NAME_MD5 = 3
,
VER_RANDOM = 4
, VER_NAME_SHA1 = 5
} |
|
using | FixedString = AZStd::fixed_string< MaxStringBuffer > |
| 32 Uuid + 4 dashes + 2 brackets + 1 terminate
|
|
using | iterator = AZStd::byte * |
|
using | const_iterator = const AZStd::byte * |
|
|
constexpr | Uuid (AZStd::string_view uuidString) |
|
constexpr | Uuid (const char *string, size_t stringLength) |
|
constexpr bool | IsNull () const |
|
constexpr Variant | GetVariant () const |
|
constexpr Version | GetVersion () const |
|
constexpr int | ToString (char *output, int outputSize, bool isBrackets=true, bool isDashes=true) const |
|
template<size_t SizeT> |
constexpr int | ToString (char(&output)[SizeT], bool isBrackets=true, bool isDashes=true) const |
|
template<class StringType > |
constexpr StringType | ToString (bool isBrackets=true, bool isDashes=true) const |
| The only requirements is that StringType can be constructed from char* and it can copied.
|
|
template<class StringType > |
constexpr void | ToString (StringType &result, bool isBrackets=true, bool isDashes=true) const |
| For inplace version we require resize, data and size members.
|
|
constexpr FixedString | ToFixedString (bool isBrackets=true, bool isDashes=true) const |
|
constexpr bool | operator== (const Uuid &rhs) const |
|
constexpr bool | operator!= (const Uuid &rhs) const |
|
constexpr bool | operator< (const Uuid &rhs) const |
|
constexpr bool | operator> (const Uuid &rhs) const |
|
constexpr bool | operator<= (const Uuid &rhs) const |
|
constexpr bool | operator>= (const Uuid &rhs) const |
|
constexpr Uuid & | operator+= (const Uuid &rhs) |
|
constexpr iterator | begin () |
|
constexpr iterator | end () |
|
constexpr const_iterator | begin () const |
|
constexpr const_iterator | end () const |
|
constexpr size_t | size () const |
|
constexpr size_t | GetHash () const |
|
|
static constexpr int | ValidUuidStringLength = 32 |
|
static constexpr size_t | MaxStringBuffer = 39 |
| Number of characters (data only, no extra formatting) in a valid UUID string.
|
|
◆ CreateString()
This function accepts the following formats, if format is invalid it returns a NULL UUID. 0123456789abcdef0123456789abcdef 01234567-89ab-cdef-0123-456789abcdef {01234567-89ab-cdef-0123-456789abcdef} {0123456789abcdef0123456789abcdef}
- Parameters
-
string | pointer to a string buffer |
stringLength | length of the string in the buffer |
◆ GetHash()
Returns the first 8 bytes of the Uuid interpreted as a little endian size_t value as the hash value
◆ ToString() [1/2]
Outputs to a string in one of the following formats 0123456789abcdef0123456789abcdef 01234567-89ab-cdef-0123-456789abcdef {01234567-89ab-cdef-0123-456789abcdef} {0123456789abcdef0123456789abcdef}
- Returns
- if positive number of characters written to the buffer (including terminate) if negative the the number of characters required for output (nothing is writen to the output), including terminating character.
◆ ToString() [2/2]
Outputs to a string in one of the following formats 0123456789abcdef0123456789abcdef 01234567-89ab-cdef-0123-456789abcdef {01234567-89ab-cdef-0123-456789abcdef} {0123456789abcdef0123456789abcdef}
- Returns
- if positive number of characters written to the buffer (including terminate) if negative the the number of characters required for output (nothing is writen to the output), including terminating character.
The documentation for this struct was generated from the following files:
- Code/Framework/AzCore/AzCore/Math/Uuid.h
- Code/Framework/AzCore/AzCore/Math/Uuid.inl