9#ifndef SQUID_SRC_BASE_RANDOMUUID_H
10#define SQUID_SRC_BASE_RANDOMUUID_H
46 void print(std::ostream &os)
const;
52 char *
raw() {
return reinterpret_cast<char*
>(
this); }
55 const char *
raw()
const {
return reinterpret_cast<const char*
>(
this); }
std::ostream & operator<<(std::ostream &os, const RandomUuid &uuid)
RandomUuid & operator=(const RandomUuid &)=delete
RandomUuid()
creates a new unique ID (i.e. not a "nil UUID" in RFC 4122 terminology)
RandomUuid & operator=(RandomUuid &&)=default
uint8_t clockSeqHiAndReserved
const char * raw() const
read-only access to storage bytes
void print(std::ostream &os) const
writes a human-readable representation
bool sane() const
whether this (being constructed) object follows UUID version 4 variant 1 format
Serialized serialize() const
exports UUID value; suitable for long-term storage
std::array< uint8_t, 128/8 > Serialized
UUID representation independent of machine byte-order architecture.
RandomUuid clone() const
creates a UUID object with the same value as this UUID
bool operator!=(const RandomUuid &other) const
bool operator==(const RandomUuid &) const
char * raw()
read/write access to storage bytes
RandomUuid(const RandomUuid &)=default
RandomUuid(RandomUuid &&)=default
uint16_t timeHiAndVersion