Module uuid

Source

Structs§

TCUuid
***** TCUuid *****
TCUuidList
TCUuidList represents a list of uuids.

Constants§

TC_UUID_STRING_BYTES
Length, in bytes, of the string representation of a UUID (without NUL terminator)

Functions§

tc_uuid_from_str
Parse the given string as a UUID. Returns TC_RESULT_ERROR on parse failure or if the given string is not valid.
tc_uuid_list_free
Free a TCUuidList instance. The instance, and all TCUuids it contains, must not be used after this call.
tc_uuid_new_v4
Create a new, randomly-generated UUID.
tc_uuid_nil
Create a new UUID with the nil value.
tc_uuid_to_buf
Write the string representation of a TCUuid into the given buffer, which must be at least TC_UUID_STRING_BYTES long. No NUL terminator is added.
tc_uuid_to_str
Return the hyphenated string representation of a TCUuid. The returned string must be freed with tc_string_free.