This section describes functions that facilitate creation and use of immutable universally unique identifiers (UUID).
...
For information about the uuid type in, see Data Types(3.0).
uuidCreateFromHexString
This function takes a string representation of a UUID and converts it to the uuid
type.
...
Info | |||||||
---|---|---|---|---|---|---|---|
| |||||||
The following example converts a string to a UUID:
|
uuidCreateRandom
This function generates a random UUID.
...
Parameter | Description |
---|---|
Returns | A version 4 UUID (randomly generated UUID) |
Info | |||||||
---|---|---|---|---|---|---|---|
| |||||||
The following example creates a random UUID:
|
uuidGetVersion
This function returns the version of a UUID. The version number describes the type of the UUID, e g time-based, DCE security, name-based, and randomly generated UUID. For instance, a UUID generated by the function uuidCreateRandom is 4 (randomly generated UUID).
Code Block |
---|
int uuidGetVersion ( uuid aUuid ) |
...
Info | |||||||
---|---|---|---|---|---|---|---|
| |||||||
The following example retrieves the version from a UUID:
|
uuidString
This function converts a UUID to a string.
...