Syntalos::Uuid
Syntalos::Uuid
A 16-byte UUID (Universally Unique Identifier).
#include <uuid.h>
Public Functions
| Name | |
|---|---|
| Uuid() | |
| Uuid(const std::array< uint8_t, 16 > & bytes) | |
| bool | operator==(const Uuid & other) const |
| uint8_t & | operator[](size_t i) |
| const uint8_t & | operator[](size_t i) const |
| std::string | toHex() const Convert UUID to a canonical lowercase string representation. |
| std::optional< Uuid > | fromHex(const std::string & s) |
Public Attributes
| Name | |
|---|---|
| std::array< uint8_t, 16 > | bytes |
Public Functions Documentation
function Uuid
inline explicit Uuid()function Uuid
inline explicit Uuid(
const std::array< uint8_t, 16 > & bytes
)function operator==
inline bool operator==(
const Uuid & other
) constfunction operator[]
inline uint8_t & operator[](
size_t i
)function operator[]
inline const uint8_t & operator[](
size_t i
) constfunction toHex
std::string toHex() constConvert UUID to a canonical lowercase string representation.
Return: The UUID in 8-4-4-4-12 format.
function fromHex
static std::optional< Uuid > fromHex(
const std::string & s
)Parameters:
- s The UUID string.
Return: A new UUID, or std::nullopt if conversion failed.
Create new UUID from a hex string.
Public Attributes Documentation
variable bytes
std::array< uint8_t, 16 > bytes {};Updated on 2026-04-24 at 06:25:18 +0000