Represents a 128-bit universally unique identifier (UUID).
More...
|
constexpr pw::span< const uint8_t, kSizeBytes > | GetSpan () const |
| Return the backing span holding the uuid.
|
|
constexpr bool | operator== (const Uuid &other) const |
|
constexpr bool | operator!= (const Uuid &other) const |
|
constexpr InlineString< kStringSize > | ToString () const |
| Convert the Uuid to a human readable string.
|
|
|
static constexpr Result< Uuid > | FromSpan (span< const uint8_t > span) |
|
static Result< Uuid > | FromSpan (ConstByteSpan span) |
|
static constexpr Result< Uuid > | FromString (std::string_view string) |
|
|
static constexpr size_t | kSizeBytes = 16 |
| Size of the UUID in bytes.
|
|
static constexpr size_t | kStringSize |
| Length of the UUID's string representation.
|
|
Represents a 128-bit universally unique identifier (UUID).
◆ FromSpan() [1/2]
static Result< Uuid > pw::uuid::Uuid::FromSpan |
( |
ConstByteSpan |
span | ) |
|
|
inlinestatic |
Create a Uuid from a const std::byte span
- Parameters
-
◆ FromSpan() [2/2]
static constexpr Result< Uuid > pw::uuid::Uuid::FromSpan |
( |
span< const uint8_t > |
span | ) |
|
|
inlinestaticconstexpr |
Create a Uuid from a const uint8_t span
- Parameters
-
◆ FromString()
static constexpr Result< Uuid > pw::uuid::Uuid::FromString |
( |
std::string_view |
string | ) |
|
|
inlinestaticconstexpr |
Create a Uuid from a string
- Parameters
-
string | string containing uuid |
◆ kStringSize
constexpr size_t pw::uuid::Uuid::kStringSize |
|
staticconstexpr |
Initial value:=
std::string_view{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}.size()
Length of the UUID's string representation.
The documentation for this class was generated from the following file: