Was this page helpful?
Version 1 (time-based) or version 4 (random) UUID.
Public Functions
Sets the UUID to the minimum V1 (time) value for the specified time.
time – [in]
output – [out] A minimum V1 UUID for the specified time.
Sets the UUID to the maximum V1 (time) value for the specified time.
time – [in]
output – [out] A maximum V1 UUID for the specified time.
Gets the timestamp for a V1 UUID
uuid – [in]
The timestamp in milliseconds since the Epoch (00:00:00 UTC on 1 January 1970). 0 returned if the UUID is not V1.
Gets the version for a UUID
uuid – [in]
The version of the UUID (1 or 4)
Returns a null-terminated string for the specified UUID.
uuid – [in]
output – [out] A null-terminated string of length CASS_UUID_STRING_LENGTH.
Returns a UUID for the specified string.
Example: “550e8400-e29b-41d4-a716-446655440000”
str – [in]
output – [out]
Same as cass_uuid_from_string(), but with lengths for string parameters.
See also
str – [in]
str_length – [in]
output – [out]
same as cass_uuid_from_string()
Public Members
Represents the time and version part of a UUID. The most significant 4 bits represent the version and the bottom 60 bits representing the time part. For version 1 the time part represents the number of 100 nanosecond periods since 00:00:00 UTC, January 1, 1970 (the Epoch). For version 4 the time part is randomly generated.
Represents the clock sequence and the node part of a UUID. The most significant 16 bits represent the clock sequence (except for the most significant bit which is always set) and the bottom 48 bits represent the node part. For version 1 (time-based) the clock sequence part is randomly generated and the node part can be explicitly set, otherwise, it’s generated from node unique information. For version 4 both the clock sequence and the node parts are randomly generated.
Was this page helpful?
On this page