abla/uuid
Generated from source.
Import with import "abla/uuid".
Source: abla/uuid/entry.ab
Uuid (class)
class Uuid()
A direct Uuid() is the valid nil UUID. The only mutable storage is private to this module, and its factories check the byte count before setting it.
Uuid.equals (method)
fun equals(other: Uuid): bool
Compare UUID values by their 16 bytes. Class == compares identity.
Uuid.toBytes (method)
fun toBytes(): string
The 16 bytes in network order.
Uuid.toString (method)
fun toString(): string
Lowercase, hyphenated text.
uuidFromBytes (fun)
fun uuidFromBytes(bytes: string): Uuid?
Constructs a UUID from 16 bytes in network order. Returns null for any other length.
uuidParse (fun)
fun uuidParse(text: string): Uuid?
Parses text in the 36-character hyphenated form with either letter case. Returns null for invalid length, separators, or hexadecimal digits.
uuidText (fun)
fun uuidText(value: Uuid): string
Format as 8-4-4-4-12 lowercase hexadecimal digits.
uuidV4 (fun)
fun uuidV4(): Uuid?
Random UUIDv4, or null if secure randomness is unavailable.
uuidV7 (fun)
fun uuidV7(): Uuid?
Generates a UUIDv7 from Unix milliseconds and random bits. Values from one millisecond have random order. Returns null for clock or entropy failure or a timestamp outside the positive 48-bit millisecond range.
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.