6 #include <nx/sdk/uuid.h> 14 template<
typename Byte>
15 Uuid fromRawData(
const Byte* data)
17 static_assert(
sizeof(Byte) == 1,
"Expected pointer to array of byte-sized items");
19 memcpy(&result, data,
sizeof(result));
24 Uuid fromStdString(
const std::string& str);
36 std::string toStdString(
const Uuid& uuid, FormatOptions formatOptions = FormatOptions::all);
49 inline std::ostream& operator<<(std::ostream& os,
const nx::sdk::Uuid& uuid)
51 return os << nx::sdk::UuidHelper::toStdString(uuid);
55 struct hash<
nx::sdk::Uuid>
60 for (
const auto b: uuid)
61 h = (h + (324723947 + b)) ^ 93485734985;
Definition: to_string.h:44