Module wsdk_uuid

Fast, portable, high quality UUID implementation.

Copyright 2010-2012 ALEPH ARCHIVES Ltd. All rights reserved.

Version: 1.0.0

Behaviours: ?GEN_SERVER.

Authors: Aleph Archives Ltd. [web site: http://aleph-archives.com/].

Description

Fast, portable, high quality UUID implementation

Reference: see RFC 4122 - (UUID) URN Namespace.

Data Types

uuid()

uuid() = <<_:128>>

v1()

v1() = uuid()

v3()

v3() = uuid()

v4()

v4() = uuid()

v5()

v5() = uuid()

Function Index

check/1Check whether the argument is a valid UUID or not.
to_str/1Convert a raw UUID binary value to a (printable) string.
urn/0Generates a Uniform Resource Name (URN) - RFC 4122.
v1/0Generate a Version 1 (MAC address) UUID.
v3/1Generate a Version 3 (MD5 hash) UUID.
v4/0Generate a Version 4 (random) UUID.
v5/1Generate a Version 5 (SHA-1 hash) UUID.

Function Details

check/1

check(UUID::uuid()) -> {true, v1 | v3 | v4 | v5} | false

Check whether the argument is a valid UUID or not.

to_str/1

to_str(UUID::uuid()) -> [byte()]

Convert a raw UUID binary value to a (printable) string.

urn/0

urn() -> binary()

Generates a Uniform Resource Name (URN) - RFC 4122.

Examples: This call garantees to always makes a new identifier.

v1/0

v1() -> v1()

Generate a Version 1 (MAC address) UUID.

See Universally unique identifier - V1 for more information.

v3/1

v3(Any::[any()]) -> v3()

Generate a Version 3 (MD5 hash) UUID.

See Universally unique identifier - V3 for more information.

v4/0

v4() -> v4()

Generate a Version 4 (random) UUID.

See Universally unique identifier - V4 for more information.

v5/1

v5(Any::any()) -> v5()

Generate a Version 5 (SHA-1 hash) UUID.

See Universally unique identifier - V5 for more information.


Generated by EDoc, Sep 5 2012, 17:38:09.