azure-core
Public Member Functions | Static Public Member Functions | List of all members
Azure::Core::Uuid Class Referencefinal

Universally unique identifier.

#include <uuid.hpp>

Public Member Functions

std::string ToString ()
 Gets Uuid as a string. More...
 
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 the Uuid. More...
 

Static Public Member Functions

static Uuid CreateUuid ()
 Creates a new random UUID.
 
static Uuid CreateFromArray (std::array< uint8_t, UuidSize > const &uuid)
 Construct a Uuid from an existing UUID represented as an array of bytes. More...
 

Member Function Documentation

◆ AsArray()

std::array<uint8_t, UuidSize> const& Azure::Core::Uuid::AsArray ( ) const
inline
Returns
An array with the binary representation of the Uuid.

◆ CreateFromArray()

Uuid Azure::Core::Uuid::CreateFromArray ( std::array< uint8_t, UuidSize > const &  uuid)
static

Creates a Uuid from a UUID created in an external scope.

◆ ToString()

std::string Azure::Core::Uuid::ToString ( )

A string is in canonical format (4-2-2-2-6 lowercase hex and dashes only).


The documentation for this class was generated from the following files: