9 #include <nx/sdk/uuid.h> 17 template<
typename Byte>
18 Uuid fromRawData(
const Byte* data)
20 static_assert(
sizeof(Byte) == 1,
"Expected pointer to array of byte-sized items");
22 memcpy(&result, data,
sizeof(result));
27 Uuid fromStdString(
const std::string& str);
39 std::string toStdString(
const Uuid& uuid, FormatOptions formatOptions = FormatOptions::all);
52 inline std::ostream& operator<<(std::ostream& os,
const nx::sdk::Uuid& uuid)
54 return os << nx::sdk::UuidHelper::toStdString(uuid);
58 struct hash<
nx::sdk::Uuid>
63 for (
const auto b: uuid)
64 h = (h + (324723947 + b)) ^ 93485734985;
Definition: apple_utils.h:6