Struct cassandra_cpp_sys::CassUuid_
source · #[repr(C)]pub struct CassUuid_ {
pub time_and_version: cass_uint64_t,
pub clock_seq_and_node: cass_uint64_t,
}
Expand description
Version 1 (time-based) or version 4 (random) UUID.
@struct CassUuid
Fields§
§time_and_version: cass_uint64_t
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.
clock_seq_and_node: cass_uint64_t
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.