12 using UuidBase = std::array<uint8_t, 16>;
22 class Uuid:
public UuidBase
25 static constexpr
int kSize = (int) std::tuple_size<UuidBase>();
26 static constexpr
int size() {
return kSize; }
29 uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3,
30 uint8_t b4, uint8_t b5, uint8_t b6, uint8_t b7,
31 uint8_t b8, uint8_t b9, uint8_t bA, uint8_t bB,
32 uint8_t bC, uint8_t bD, uint8_t bE, uint8_t bF)
34 UuidBase({b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, bA, bB, bC, bD, bE, bF})
38 explicit Uuid(
const uint8_t (&byteArray)[kSize])
40 memcpy(data(), byteArray, kSize);
43 constexpr
Uuid(): UuidBase{} {}
45 bool isNull()
const {
return *
this ==
Uuid(); }
Definition: device_agent.h:12