Skip to content

UUID

Functions

bool uuid_equal(const Uuid *uu1, const Uuid *uu2)

Compares two UUIDs.

Returns

True if the two UUIDs are equal, false if they are not.

void uuid_to_string(const Uuid *uuid, char *buffer)

Writes UUID in a string form into buffer that looks like the following... {12345678-1234-5678-1234-567812345678} or {NULL UUID} if NULL was passed.

Parameters
  • uuid: The Uuid to write into the buffer as human-readable string
  • buffer: Memory to write the string to. Must be at least UUID_STRING_BUFFER_LENGTH bytes long.

struct attribute((packed))

Data structure for one serialized key/value tuple.