Idris2Doc : UUID

UUID

(source)

Definitions

recordUUID : Type
  A UUID.

Implemented as a wrapper around a foreign object.

Totality: total
Visibility: public export
Constructor: 
MkUUID : GCAnyPtr->UUID

Projection: 
.ptr : UUID->GCAnyPtr

Hint: 
UUIDGen->OrdUUID
.ptr : UUID->GCAnyPtr
Visibility: public export
ptr : UUID->GCAnyPtr
Visibility: public export
interfaceUUIDGen : Type
Constraints: Ord UUID
Methods:
fromBytes : Vect16Bits8->MaybeUUID
  A UUID from a byte vector, if the byte vector forms a valid UUID.
toBytes : UUID->Vect16Bits8
  A UUID as a byte vector.
uuid1 : IO (UUID, Bool)
  UUID version 1.

Uses the current time and the local ethernet MAC address.

If the `Bool` is `False`, it is guaranteed that two concurrently running processes did not
obtain the same UUID. `True` does not necessarily guarantee the converse.
uuid3 : Vect16Bits8->String->UUID
  UUID version 3.

Deterministic UUID created by MD5 hashing `namespace'` and `name`.
uuid4 : IOUUID
  UUID version 4.

Generates a UUID using high-quality randomness.

**Note**: For C, If none of libc `getRandom`, /dev/urandom or /dev/random are available,
a pseudo-random generator will be substituted, which may compromise UUID uniqueness.
uuid5 : Vect16Bits8->String->UUID
  UUID version 5.

Deterministic UUID created by SHA1 hashing `namespace'` and `name`.
parse : String->MaybeUUID
  Try to parse a UUID string (e.g. "1b4e28ba-2fa1-11d2-883f-b9a761bde3fb") as a UUID.
unparse : UUID->String
  Convert a UUID to string format.
fromBytes : UUIDGen=>Vect16Bits8->MaybeUUID
  A UUID from a byte vector, if the byte vector forms a valid UUID.

Visibility: public export
toBytes : UUIDGen=>UUID->Vect16Bits8
  A UUID as a byte vector.

Visibility: public export
uuid1 : UUIDGen=>IO (UUID, Bool)
  UUID version 1.

Uses the current time and the local ethernet MAC address.

If the `Bool` is `False`, it is guaranteed that two concurrently running processes did not
obtain the same UUID. `True` does not necessarily guarantee the converse.

Visibility: public export
uuid3 : UUIDGen=>Vect16Bits8->String->UUID
  UUID version 3.

Deterministic UUID created by MD5 hashing `namespace'` and `name`.

Visibility: public export
uuid4 : UUIDGen=>IOUUID
  UUID version 4.

Generates a UUID using high-quality randomness.

**Note**: For C, If none of libc `getRandom`, /dev/urandom or /dev/random are available,
a pseudo-random generator will be substituted, which may compromise UUID uniqueness.

Visibility: public export
uuid5 : UUIDGen=>Vect16Bits8->String->UUID
  UUID version 5.

Deterministic UUID created by SHA1 hashing `namespace'` and `name`.

Visibility: public export
parse : UUIDGen=>String->MaybeUUID
  Try to parse a UUID string (e.g. "1b4e28ba-2fa1-11d2-883f-b9a761bde3fb") as a UUID.

Visibility: public export
unparse : UUIDGen=>UUID->String
  Convert a UUID to string format.

Visibility: public export