Package-level declarations

Types

Link copied to clipboard
typealias UUID = Uuid
Link copied to clipboard
expect class Uuid : Comparable<Uuid>

A RFC4122 UUID

actual typealias Uuid = UUID
actual class Uuid constructor(uuidBytes: ByteArray) : Comparable<Uuid>

A RFC4122 UUID

Link copied to clipboard
interface UuidHasher

Interface for computing a hash for a "Name-Based" UUID

Properties

Link copied to clipboard
expect val Uuid.bytes: ByteArray

Gets the raw UUID bytes

actual val Uuid.bytes: ByteArray
Link copied to clipboard
Link copied to clipboard
expect val Uuid.variant: Int

The variant of the Uuid, determines the interpretation of the bits.

actual val Uuid.variant: Int
Link copied to clipboard
expect val Uuid.version: Int

The version of the Uuid, denoting the generating algorithm.

actual val Uuid.version: Int

Functions

Link copied to clipboard
fun nameBasedUuidOf(namespace: Uuid, name: String, hasher: UuidHasher): Uuid

Constructs a "Name-Based" version 3 or 5 UUID.

uuid3Of
Link copied to clipboard
fun uuid3Of(namespace: Uuid, name: String): Uuid

Constructs a "Name-Based" version 3 UUID.

fun uuid3Of(namespace: Uuid, name: String): Uuid

Constructs a "Name-Based" version 3 UUID.

fun uuid3Of(namespace: Uuid, name: String): Uuid

Constructs a "Name-Based" version 3 UUID.

Link copied to clipboard
expect fun uuid4(): Uuid

Construct new version 4 UUID.

actual inline fun uuid4(): Uuid
actual fun uuid4(): Uuid
uuid5Of
Link copied to clipboard
fun uuid5Of(namespace: Uuid, name: String): Uuid

Constructs a "Name-Based" version 5 UUID.

fun uuid5Of(namespace: Uuid, name: String): Uuid

Constructs a "Name-Based" version 5 UUID.

fun uuid5Of(namespace: Uuid, name: String): Uuid

Constructs a "Name-Based" version 5 UUID.

Link copied to clipboard
expect fun uuidFrom(string: String): Uuid

Construct new Uuid instance from a String

actual fun uuidFrom(string: String): Uuid
actual fun uuidFrom(string: String): Uuid
Link copied to clipboard
expect fun uuidOf(bytes: ByteArray): Uuid

Constructs a new Uuid from the given bytes

actual fun uuidOf(bytes: ByteArray): Uuid
actual fun uuidOf(bytes: ByteArray): Uuid