struct UUID

Defined at line 39 of file ../../third_party/crashpad/src/util/misc/uuid.h

A universally unique identifier (%UUID).

An alternate term for %UUID is “globally unique identifier” (GUID), used

primarily by Microsoft.

A %UUID is a unique 128-bit number specified by RFC 4122.

This is a POD structure.

Public Members

uint32_t data_1
uint16_t data_2
uint16_t data_3
uint8_t[2] data_4
uint8_t[6] data_5

Public Methods

bool operator!= (const UUID & that)

Defined at line 41 of file ../../third_party/crashpad/src/util/misc/uuid.h

bool operator== (const UUID & that)
bool operator< (const UUID & that)
void InitializeToZero ()

Initializes the %UUID to zero.

void InitializeFromBytes (const uint8_t * bytes)

Initializes the %UUID from a sequence of bytes.

is taken as a %UUID laid out in big-endian format in memory. On

little-endian machines, appropriate byte-swapping will be performed to

initialize an object’s data members.

Parameters

bytes [in] A buffer of exactly 16 bytes that will be assigned to the %UUID.
bool InitializeFromString (std::string_view string)

Initializes the %UUID from a RFC 4122 §3 formatted string.

Parameters

string [in] A string of the form `"00112233-4455-6677-8899-aabbccddeeff"`.

Returns

`true` if the string was formatted correctly and the object has

been initialized with the data. `false` if the string could not be

parsed, with the object state untouched.

bool InitializeWithNew ()

Initializes the %UUID using a standard system facility to generate

the value.

Returns

`true` if the %UUID was initialized correctly, `false` otherwise

with a message logged.

std::string ToString ()

Formats the %UUID per RFC 4122 §3.

Returns

A string of the form `"00112233-4455-6677-8899-aabbccddeeff"`.