Menu

CassUuid

struct CassUuid

Version 1 (time-based) or version 4 (random) UUID.

Public Functions

void cass_uuid_min_from_time(cass_uint64_t time, CassUuid *output)

Sets the UUID to the minimum V1 (time) value for the specified time.

Parameters
  • time:

  • output: A minimum V1 UUID for the specified time.

void cass_uuid_max_from_time(cass_uint64_t time, CassUuid *output)

Sets the UUID to the maximum V1 (time) value for the specified time.

Parameters
  • time:

  • output: A maximum V1 UUID for the specified time.

cass_uint64_t cass_uuid_timestamp(CassUuid uuid)

Gets the timestamp for a V1 UUID

Return

The timestamp in milliseconds since the Epoch (00:00:00 UTC on 1 January 1970). 0 returned if the UUID is not V1.

Parameters
  • uuid:

cass_uint8_t cass_uuid_version(CassUuid uuid)

Gets the version for a UUID

Return

The version of the UUID (1 or 4)

Parameters
  • uuid:

void cass_uuid_string(CassUuid uuid, char *output)

Returns a null-terminated string for the specified UUID.

Parameters
  • uuid:

  • output: A null-terminated string of length CASS_UUID_STRING_LENGTH.

CassError cass_uuid_from_string(const char *str, CassUuid *output)

Returns a UUID for the specified string.

Example: “550e8400-e29b-41d4-a716-446655440000”

Parameters
  • str:

  • output:

CassError cass_uuid_from_string_n(const char *str, size_t str_length, CassUuid *output)

Same as cass_uuid_from_string(), but with lengths for string parameters.

Return

same as cass_uuid_from_string()

See

cass_uuid_from_string()

Parameters
  • str:

  • str_length:

  • output: