19namespace Azure {
namespace Core {
26 static constexpr size_t UuidSize = 16;
28 std::array<uint8_t, UuidSize> m_uuid{};
31 Uuid(uint8_t
const uuid[UuidSize]) { std::memcpy(m_uuid.data(), uuid, UuidSize); }
45 std::array<uint8_t, UuidSize>
const&
AsArray()
const {
return m_uuid; }
Universally unique identifier.
Definition uuid.hpp:23
std::string ToString()
Gets Uuid as a string.
Definition uuid.cpp:20
std::array< uint8_t, UuidSize > const & AsArray() const
Returns the binary value of the Uuid for consumption by clients who need non-string representation of...
Definition uuid.hpp:45
static Uuid CreateUuid()
Creates a new random UUID.
Definition uuid.cpp:50
static Uuid CreateFromArray(std::array< uint8_t, UuidSize > const &uuid)
Construct a Uuid from an existing UUID represented as an array of bytes.
Definition uuid.cpp:87
Compute the hash value for the input binary data, using SHA256, SHA384 and SHA512.
Definition azure_assert.hpp:57