30 using Bytes = std::array<uint8_t, 16>;
36 explicit Uuid(
const Bytes& data)
noexcept;
39 static Uuid Generate();
47 static Uuid FromString(
const std::string&
str);
50 bool IsNil() const noexcept;
53 explicit operator
bool() const noexcept;
57 bool operator==(const
Uuid& other) const noexcept;
58 bool operator!=(const
Uuid& other) const noexcept;
60 bool operator>(const
Uuid& other) const noexcept;
61 bool operator>=(const
Uuid& other) const noexcept;
63 bool operator<(const
Uuid& other) const noexcept;
64 bool operator<=(const
Uuid& other) const noexcept;
67 const
Bytes& ToBytes() const noexcept;
73 std::
string ToHexString() const;
75 std::
size_t GetHash() const noexcept;
89 return uuid.GetHash();
Platform independent class for generating and parsing UUIDs.
Utility class that generates and parses UUIDs.
std::array< uint8_t, 16 > Bytes
auto ToString(const std::optional< TimeSignature > &ts)
std::size_t operator()(const audacity::Uuid &uuid) const noexcept