32 std::memcpy(data_, uuid,
ID_SIZE);
38 std::memcpy(data_, rhs.data_,
ID_SIZE);
39 hash_value_ = rhs.hash_value_;
46 std::memcpy(data_, rhs.data_,
ID_SIZE);
47 hash_value_ = rhs.hash_value_;
53 return std::memcmp(data_, rhs.data_,
ID_SIZE) == 0;
57 return std::memcmp(data_, rhs.data_,
ID_SIZE) != 0;
66void Identity::Update() {
std::string ToString() const
uint64_t HashValue() const
Identity & operator=(const Identity &another)
bool operator!=(const Identity &another) const
bool operator==(const Identity &another) const
Identity(bool need_generate=true)
std::size_t Hash(const std::string &key)
constexpr uint8_t ID_SIZE