17#ifndef CYBER_TRANSPORT_COMMON_IDENTITY_H_
18#define CYBER_TRANSPORT_COMMON_IDENTITY_H_
32 explicit Identity(
bool need_generate =
true);
44 const char*
data()
const {
return data_; }
46 if (
data ==
nullptr) {
49 std::memcpy(data_,
data,
sizeof(data_));
const char * data() const
std::string ToString() const
uint64_t HashValue() const
void set_data(const char *data)
Identity & operator=(const Identity &another)
bool operator!=(const Identity &another) const
bool operator==(const Identity &another) const
constexpr uint8_t ID_SIZE