The unicly Reference Manual

This is the unicly Reference Manual, version 2011.8.31, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Feb 26 18:11:45 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 unicly

UUID Generation per RFC 4122

Maintainer

<>

License

MIT

Long Description

UUID implementation for Common Lisp as per RFC 4122

Version

2011.8.31

Dependencies
  • ironclad (system).
  • split-sequence (system).
Source

unicly.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 unicly/unicly.asd

Source

unicly.asd.

Parent Component

unicly (system).

ASDF Systems

unicly.

Packages

unicly-asd.

Internals

*author-maintainer-contact* (special variable).


3.1.2 unicly/package.lisp

Source

unicly.asd.

Parent Component

unicly (system).

Packages

unicly.


3.1.3 unicly/unicly-specials.lisp

Dependency

package.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Public Interface
Internals

3.1.4 unicly/unicly-bridge.lisp

Dependency

unicly-specials.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Internals

3.1.5 unicly/unicly-utils.lisp

Dependency

unicly-bridge.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Internals

3.1.7 unicly/unicly-types.lisp

Dependency

unicly-macros.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Public Interface
Internals

3.1.8 unicly/unicly-class.lisp

Dependency

unicly-types.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Public Interface
Internals

3.1.9 unicly/unicly-conditions.lisp

Dependency

unicly-class.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Internals

3.1.10 unicly/unicly-integers.lisp

Dependency

unicly-conditions.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Internals

3.1.11 unicly/unicly-byte-arrays.lisp

Dependency

unicly-integers.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Public Interface
Internals

uuid-integer-128-to-byte-array (function).


3.1.13 unicly/unicly-null-check.lisp

Dependency

unicly-bit-vectors.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Internals

3.1.14 unicly/unicly.lisp

Dependency

unicly-null-check.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Public Interface
Internals

3.1.15 unicly/unicly-string-uuid.lisp

Dependency

unicly.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Public Interface

make-uuid-from-string (function).

Internals

3.1.16 unicly/unicly-uuid-version.lisp

Dependency

unicly-string-uuid.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Public Interface

uuid-version-uuid (function).

Internals

%uuid-uuid-version-if (function).


3.1.17 unicly/unicly-hash-table.lisp

Dependency

unicly-uuid-version.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).

Public Interface
Internals

+%%uuid-sxhash-truncating-node%%+ (constant).


3.1.20 unicly/unicly-docs.lisp

Dependency

unicly-extend.lisp (file).

Source

unicly.asd.

Parent Component

unicly (system).


4 Packages

Packages are listed by definition order.


4.1 unicly

Source

package.lisp.

Use List

common-lisp.

Public Interface
Internals

4.2 unicly-asd

Source

unicly.asd.

Use List
  • asdf/interface.
  • common-lisp.
Internals

*author-maintainer-contact* (special variable).


5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Special variables

Special Variable: *uuid-namespace-dns*

A DNS namespace as provided with RFC4122 Appendix C. "Some Name Space IDs".

It is suggested that this may be used as the NAMESPACE arg when generating v3
and v5 UUIDs where NAME is a string designating a FQDN (Fully-Qualified Domain Name).

:EXAMPLE

(unique-universal-identifier-p *uuid-namespace-dns*)

The default value of this namespace is generated from the hexadecimal integers provided for ‘NameSpace_DNS‘ page 29 of the appendix.

These are:
#x6ba7b810 ;; uuid-ub32
#x9dad ;; uuid-ub16
#x11d1 ;; uuid-ub16
#x80 ;; uuid-ub8
#xb4 ;; uuid-ub8
#x00 #xc0 #x4f #xd4 #x30 #xc8 ;; uuid-ub48

With the string representation: "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
:SEE-ALSO ‘make-v3-uuid’, ‘make-v5-uuid’, ‘make-v4-uuid’.

Package

unicly.

Source

unicly-specials.lisp.

Special Variable: *uuid-namespace-oid*

An OID namespace as provided with RFC4122 Appendix C. "Some Name Space IDs".

It is suggested that this may be used as the NAMESPACE arg when generating v3 and v5 UUIDs where NAME is a string designating an ISO OID .

:EXAMPLE

(unique-universal-identifier-p *uuid-namespace-oid*)

The default value for this namespace is generated from the hexadecimal integers provided with RFC4122 Appendix C. - "Some- Name Space IDs" page 29.

#x6ba7b812 ;; uuid-ub32
#x9dad ;; uuid-ub16
#x11d1 ;; uuid-ub16
#x80 ;; uuid-ub8
#xb4 ;; uuid-ub8
#x00 #xc0, #x4f, #xd4, #x30, #xc8 ;; uuid-ub48

With the string representaton: "6ba7b812-9dad-11d1-80b4-00c04fd430c8"

:SEE (URL ‘http://www.techabulary.com/o/oid/’)

:SEE-ALSO ‘make-v3-uuid’, ‘make-v5-uuid’, ‘make-v4-uuid’.

Package

unicly.

Source

unicly-specials.lisp.

Special Variable: *uuid-namespace-url*

An URL namespace as provided with RFC4122 Appendix C. "Some Name Space IDs".

It is suggested that this may be used as the NAMESPACE arg when generating v3 and v5 UUIDs where NAME is a string designating an URL (Universal Resource Locator).

:EXAMPLE

(unique-universal-identifier-p *uuid-namespace-url*)

The default value for this namespace is generated from the hexadecimal integers provided with RFC4122 Appendix C. - "Some- Name Space IDs" page 29.

These are:
#x6ba7b811 ;; uuid-ub32
#x9dad ;; uuid-ub16
#x11d1 ;; uuid-ub16
#x80 ;; uuid-ub8
#xb4 ;; uuid-ub8
#x00 #xc0, #x4f, #xd4, #x30, #xc8 ;; uuid-ub48

With the string representation: "6ba7b811-9dad-11d1-80b4-00c04fd430c8"

:SEE-ALSO ‘make-v3-uuid’, ‘make-v5-uuid’, ‘make-v4-uuid’.

Package

unicly.

Source

unicly-specials.lisp.

Special Variable: *uuid-namespace-x500*

An x500 namespace as provided with RFC4122 Appendix C. "Some Name Space IDs".

It is suggested that this may be used as the NAMESPACE arg when generating v3 and v5 UUIDs where NAME is a string designating an an X.500 Distinguished Name in DER (Distinguished Encoding Rules) or a text output format.

:EXAMPLE

(unique-universal-identifier-p *uuid-namespace-x500*)

The default value for this namespace is generated from the hexadecimal integers provided with RFC4122 Appendix C. - "Some- Name Space IDs" page 29.

#x6ba7b812 ;; uuid-ub32
#x9dad ;; uuid-ub16
#x11d1 ;; uuid-ub16
#x80 ;; uuid-ub8
#xb4 ;; uuid-ub8
#x00 #xc0, #x4f, #xd4, #x30, #xc8 ;; uuid-ub48

With the string representaton: "6ba7b812-9dad-11d1-80b4-00c04fd430c8"

:SEE (URL ‘http://en.wikipedia.org/wiki/X.500’)

:SEE (URL ‘http://luca.ntop.org/Teaching/Appunti/asn1.html’) esp. Section 6.

:SEE-ALSO ‘make-v3-uuid’, ‘make-v5-uuid’, ‘make-v4-uuid’.

Package

unicly.

Source

unicly-specials.lisp.


5.1.2 Ordinary functions

Function: make-hash-table-uuid (&key size rehash-size rehash-threshold weakness synchronized)

Return a hash-table specialized to hold UUIDs as keys.

On SBCL this this is a hash-table with ‘uuid-eql’ as ‘cl:hash-table-test’.

Keyword :SYNCHRONIZED when non-nile indicates hash-table may have multiple concurrent readers. :EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘sb-ext:with-locked-hash-table’.

Package

unicly.

Source

unicly-hash-table.lisp.

Function: make-null-uuid ()

Generate a NULL UUID.

Per RFC4122 Setion 4.1.7. "Nil UUID":
The nil UUID is special form of UUID specified to have all 128 bits set to zero.

Return value is an instance of ‘unique-universal-identifier’ with all slots defaulted to 0.

Return value has the format:

00000000-0000-0000-0000-000000000000

:EXAMPLE

(make-null-uuid)

:NOTE Two null-uuids do not share identity:

(eq (make-instance ’unique-universal-identifier)
(make-instance ’unique-universal-identifier))

(eql (make-instance ’unique-universal-identifier)
(make-instance ’unique-universal-identifier))

(equal (make-instance ’unique-universal-identifier)
(make-instance ’unique-universal-identifier))

(equalp (make-instance ’unique-universal-identifier)
(make-instance ’unique-universal-identifier))

However, we can test with ‘uuid-eql’ if they have the same representation in uuid-bit-vector-128 format:

(uuid-eql
(make-instance ’unique-universal-identifier)
(make-instance ’unique-universal-identifier))

:SEE-ALSO ‘uuid-bit-vector-128-zeroed’.

Package

unicly.

Source

unicly.lisp.

Function: make-uuid-from-string (uuid-or-hex-string-36)

Create an instance of class UNIQUE-UNIVERSAL-IDENTIFIER from UUID-OR-HEX-STRING-36.

UUID-OR-HEX-STRING-36 is an object of type UNIQUE-UNIVERSAL-IDENTIFIER or UUID-OR-HEX-STRING-36. It should satisfy one of ‘unique-universal-identifier-p’ or
‘uuid-hex-string-36-p’, an error is signaled if not.

:EXAMPLE

(make-uuid-from-string "6ba7b810-9dad-11d1-80b4-00c04fd430c8")

(make-uuid-from-string *uuid-namespace-dns*)

(make-uuid-from-string (uuid-princ-to-string *uuid-namespace-dns*))

(equal (make-uuid-from-string *uuid-namespace-dns*)
(make-uuid-from-string (uuid-princ-to-string *uuid-namespace-dns*)))

;; :Following successfully signals an error:

(make-uuid-from-string "Q6ba7b810-9dad-11d1-80b4-00c04fd430c8")

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-string-uuid.lisp.

Function: make-v3-uuid (namespace name)

Generate an RFC4122 version 3 (named based MD5) UUID for NAME in NAMESPACE.

Return value is an instance of the UNIQUE-UNIVERSAL-IDENTIFIER class.

NAMESPACE is a UUID namespace object.

NAME is a string.

:EXAMPLE

(make-v3-uuid *uuid-namespace-dns* "bubba")

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: make-v4-uuid ()

Return a version 4 (random) UUID.

Return value is an instance of the UNIQUE-UNIVERSAL-IDENTIFIER class.

:EXAMPLE

{ ... <EXAMPLE> ... }

A v4 UUID is one generatied UUIDs from truly-random or pseudo-random numbers.

,—- RFC4122 Section 4.4. "Creating UUIDs from Truly-Random/Pseudo-Random Numbers" |
| The algorithm is as follows:
|
| 1) Set the two most significant bits (bits 6 and 7) of the
| clock_seq_hi_and_reserved to zero and one, respectively.
| ‘-> Slot ‘%uuid_clock-seq-and-reserved’
| :NOTE Steps 7 and 8 for v3 and v5 with ‘%uuid_clock-seq-and-reserved-request’ |
| 2) Set the four most significant bits (bits 12 through 15) of the
| time_hi_and_version field to the 4-bit version number from Section 4.1.3.
| ‘-> Slot ‘%uuid_time-high-and-version’ e.g. #*0100
| :NOTE Correspond with step 6 for v3 and v5 which sets top bits
| #*01010 for SHA1 or #*0011 for MD5 with ‘%uuid_time-high-and-version-request’ |
| 3) Set all the other bits to randomly (or pseudo-randomly) chosen
| values.
| ‘-> Slots ‘%uuid_time-low’, ‘%uuid_time-mid’, ‘%uuid-clock-seq-low’, ‘%uuid_node’ ‘—-

:SEE-ALSO ‘make-v3-uuid’, ‘make-v5-uuid’, ‘make-v1-uuid’, ‘make-null-uuid’, ‘*random-state-uuid*’, ‘cl:random’.

Package

unicly.

Source

unicly.lisp.

Function: make-v5-uuid (namespace name)

Generates an RFC4122 version 5 (nambe based SHA1) UUID with NAME in NAMESPACE.

Return value is an instance of the class UNIQUE-UNIVERSAL-IDENTIFIER.

NAMESPACE is a UUID namespace object.

NAME is a string.

:EXAMPLE

(make-v5-uuid *uuid-namespace-dns* "bubba")

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: sxhash-uuid (uuid)

Return the ‘sxhash’ of UUID’s representation as an object of type ‘uuid-bit-vector-128’.

UUID is an instance of the class ‘unique-universal-identifier’.

:EXAMPLE

(sxhash-uuid (make-v4-uuid))

(sxhash-uuid (make-v3 uuid *uuid-namespace-dns* "bubba"))

(sxhash-uuid (make-v5-uuid *uuid-namespace-dns* "bubba"))

(let ((v4-instance (make-v4-uuid))
(v5-instance (make-v5-uuid *uuid-namespace-dns* "bubba"))
(v3-instance (make-v3-uuid *uuid-namespace-dns* "bubba")))
(and (eq (sxhash-uuid v5-instance)
(sxhash-uuid (uuid-copy-uuid v5-instance)))
(eq (sxhash-uuid v3-instance)
(sxhash-uuid (uuid-copy-uuid v3-instance)))
(eq (sxhash-uuid v4-instance)
(sxhash-uuid (uuid-copy-uuid v4-instance)))))

:SEE-ALSO ‘uuid-eql’, ‘uuid-copy-uuid’, ‘uuid-to-bit-vector’, ‘sb-int:bit-vector-=’.

Package

unicly.

Source

unicly-hash-table.lisp.

Function: unique-universal-identifier-null-p (object)

Whether object is an instance of the class
‘unicly::unique-universal-identifier-null’ and its value is ‘cl:eq’ that of
special variable ‘unicly::*uuid-null-uuid*’.

:EXAMPLE

(unique-universal-identifier-null-p *uuid-null-uuid*)

(unique-universal-identifier-null-p (make-null-uuid))

(type-of (make-instance ’unique-universal-identifier-null))

;; Following both fail successfully:

(unique-universal-identifier-null-p (make-instance ’unicly::unique-universal-identifier-null))

(unique-universal-identifier-null-p (make-instance ’unicly::unique-universal-identifier))

:SEE-ALSO ‘unicly:unique-universal-identifier-p’.

Package

unicly.

Source

unicly-class.lisp.

Function: uuid-as-urn-string (stream uuid)

Print UUID as a URN (Universal Resource Name) to STREAM.

Return value has the format:

urn:uuid:<UUID>

UUID is an instance of ‘unique-universal-identifier’ class.

STREAM is an output-stream of type ‘stream-or-boolean-or-string-with-fill-pointer’.

:EXAMPLE

(string= (uuid-as-urn-string nil (make-null-uuid)) "urn:uuid:00000000-0000-0000-0000-000000000000")

:NOTE Per RFC4122 Section 3. "Namespace Registration Template"
,—-
| The hexadecimal values "a" through "f" are output as
| lower case characters and are case insensitive on input.
‘—-

:SEE-ALSO ‘make-uuid-from-string’, ‘uuid-print-bytes’,
‘uuid-print-bytes-to-string’, ‘uuid-princ-to-string’,
‘uuid-string-parse-integer’.

Package

unicly.

Source

unicly.lisp.

Function: uuid-bit-vector-128-p (maybe-object-of-type)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-bit-vector-eql (uuid-bv-a uuid-bv-b)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-null-p (bit-vector-maybe-null)

Whether BIT-VECTOR-MAYBE-NULL is of type ‘unicly:uuid-bit-vector-null’.

:EXAMPLE

(uuid-bit-vector-null-p (uuid-bit-vector-128-zeroed))

(uuid-bit-vector-null-p (make-array 128 :element-type ’bit :initial-element 1))

(null (uuid-bit-vector-null-p (uuid-byte-array-16-zeroed)))

:SEE-ALSO ‘unicly:uuid-bit-vector-eql’, ‘unicly:uuid-bit-vector-128-zeroed’, ‘unicly:uuid-bit-vector-128’, ‘unicly:uuid-bit-vector-128-p’.

Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-to-byte-array (uuid-bv-128)

Convert UUID-BV-128 to a UUID-BYTE-ARRAY-16.

Arg UUID-BV-128 should satisfy ‘uuid-bit-vector-128-check-type’.

:EXAMPLE

(equalp
(uuid-bit-vector-to-byte-array (uuid-to-bit-vector (make-v5-uuid *uuid-namespace-dns* "bubba"))) (uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba")))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-v3-p (uuid-bit-vector)

<DOCSTR>

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-version-bit-vector’, ‘uuid-bit-vector-v3-p’, ‘uuid-bit-vector-v4-p’ ‘uuid-bit-vector-v5-p’, ‘uuid-bit-vector-128’, ‘uuid-eql’.

Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-v4-p (uuid-bit-vector)

<DOCSTR>

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-version-bit-vector’, ‘uuid-bit-vector-v3-p’, ‘uuid-bit-vector-v4-p’ ‘uuid-bit-vector-v5-p’, ‘uuid-bit-vector-128’, ‘uuid-eql’.

Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-v5-p (uuid-bit-vector)

<DOCSTR>

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-version-bit-vector’, ‘uuid-bit-vector-v3-p’, ‘uuid-bit-vector-v4-p’ ‘uuid-bit-vector-v5-p’, ‘uuid-bit-vector-128’, ‘uuid-eql’.

Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-byte-array-16-p (maybe-object-of-type)

Whether MAYBE-UUID-BYTE-ARRAY-16 is of type ‘uuid-byte-array-16’.

Return T when MAYBE-UUID-BYTE-ARRAY-16 has the type signature:

(simple-array (unsigned-byte 8) (16))

:EXAMPLE

(uuid-byte-array-16-p (uuid-to-byte-array *uuid-namespace-dns*))

:SEE-ALSO ‘uuid-hex-string-36’, ‘uuid-hex-string-36-p’.

Package

unicly.

Source

unicly-types.lisp.

Function: uuid-byte-array-16-to-integer (uuid-ba-16)

Convert a UUID byte-array representaton to its decimal integer representaton. UUID-BA-16 is an object of type ‘uuid-byte-array-16’.
Return value is an integer with an upper-bounds of a ‘uuid-ub128’.

:EXAMPLE
(uuid-bit-vector-to-integer
(uuid-to-bit-vector
(make-v5-uuid *uuid-namespace-dns* "bubba")))
;=> 317192554773903544674993329975922389959

(uuid-integer-128-to-byte-array 317192554773903544674993329975922389959) ;=> #(238 161 16 94 54 129 81 23 153 182 123 43 95 225 243 199)

(uuid-byte-array-16-to-integer
(uuid-integer-128-to-byte-array 317192554773903544674993329975922389959)) ;=> 317192554773903544674993329975922389959

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-byte-arrays.lisp.

Function: uuid-byte-array-16-zeroed ()

Return an array of type ‘uuid-byte-array-16’ with all elements zeroed.

:EXAMPLE

(uuid-byte-array-16-zeroed)

(typep (uuid-byte-array-16-zeroed) ’uuid-byte-array-16)

(uuid-byte-array-16-p (uuid-byte-array-16-zeroed))

:SEE-ALSO ‘uuid-bit-vector-128-zeroed’, ‘uuid-byte-array-16-p’, ‘uuid-byte-array-null-p’, ‘uuid-byte-array-null’.

Package

unicly.

Source

unicly-byte-arrays.lisp.

Function: uuid-byte-array-null-p (byte-array-maybe-null)

Whether object is of type ‘unicly:uuid-byte-array-null’.

:EXAMPLE

(uuid-byte-array-null-p (uuid-byte-array-16-zeroed))

(uuid-byte-array-null-p (make-array 16 :element-type ’uuid-ub8 :initial-element 0))

(not (uuid-byte-array-null-p (make-array 16 :element-type ’uuid-ub8 :initial-element 1)))

(not (uuid-byte-array-null-p (uuid-bit-vector-128-zeroed)))

:SEE-ALSO ‘uuid-byte-array-16-zeroed’, ‘uuid-byte-array-16-p’.

Package

unicly.

Source

unicly-types.lisp.

Function: uuid-byte-array-to-bit-vector (uuid-byte-array)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-byte-string-p (maybe-object-of-type)

Whether object is of type ‘uuid-byte-string’.

Return T when object has the type signature:

(simple-array character (16))

:EXAMPLE

(uuid-byte-string-p (uuid-get-bytes (uuid-print-bytes nil *uuid-namespace-dns*)))

:SEE-ALSO ‘uuid-hex-string-36-p’, ‘uuid-byte-array-16-p’.

Package

unicly.

Source

unicly-types.lisp.

Function: uuid-copy-uuid (uuid-instance)

Copy slot-value’s of UUID-INSTANCE to new instance and return new instance.

UUID-INSTANCE should satisfy ‘unique-universal-identifier-p’, an error is signaled if not.

:EXAMPLE

(let* ((source *uuid-namespace-dns*)
(clone (uuid-copy-uuid source)))
(not (or (eq clone source)
(eql clone source)
(equal clone source)
(equalp clone source))))

:NOTE The base slot-values of an instance of ‘unique-universal-identifier’ class are constants and satisfy ‘cl:constantp’:

(constantp (slot-value *uuid-namespace-dns* ’%uuid_time-low))

Therefor, the newly returned copy will not share mutable structure with
its source UUID-INSTANCE.

:NOTE Because there should only ever be one true instance of the null-uuid when UUID-INSTANCE satisfies ‘unique-universal-identifier-null-p’ the returned copy of UUID-INSTANCE is an instance of class ‘unique-universal-identifier’ not an instance of class ‘unique-universal-identifier-null’ and the returned copy does not satisfy ‘unique-universal-identifier-null-p’. For example:

(unique-universal-identifier-null-p (make-null-uuid))

(unique-universal-identifier-null-p (uuid-copy-uuid (make-null-uuid)))

(type-of (uuid-copy-uuid (make-null-uuid)))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-class.lisp.

Function: uuid-from-bit-vector (bit-vector-128)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-from-byte-array (byte-array)

Convert BYTE-ARRAY to a UUID.

Return value is an instance of the UNIQUE-UNIVERSAL-IDENTIFIER class.

BYTE-ARRAY is a byte-array as returned by ‘uuid-to-byte-array’ it should be of
type ‘uuid-to-byte-array’ and satisfy the predicate
‘uuid-to-byte-array-p’:

:EXAMPLE

(uuid-from-byte-array (uuid-to-byte-array (make-uuid-from-string "6ba7b814-9dad-11d1-80b4-00c04fd430c8"))) :SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: uuid-get-namespace-bytes (uuid)

Convert UUID to a byte-array.

Arg UUID should be an instance of the UNIQUE-UNIVERSAL-IDENTIFIER class.

Return value is an array of type ‘uuid-byte-array-16’ with the type signature:

(simple-array (unsigned-byte 8) (16))

It will satisfy the predicate ‘uuid-byte-array-16-p’.

:EXAMPLE

(uuid-get-namespace-bytes *uuid-namespace-dns*)

:SEE-ALSO ‘uuid-from-byte-array’.

Package

unicly.

Source

unicly-byte-arrays.lisp.

Function: uuid-hex-string-32-p (maybe-uuid-hex-string-32)

Whether object is of type ‘uuid-hex-string-32’.

Return T when object has the type signature:

(array character (32))

and satisfies ‘mon:string-all-hex-char-p’.

:EXAMPLE

(uuid-hex-string-32-p (uuid-print-bytes nil *uuid-namespace-dns*))

;; Following fails successfully:

(uuid-hex-string-32-p (print-object *uuid-namespace-dns* nil))

:SEE-ALSO ‘uuid-hex-string-36’, ‘uuid-hex-string-36-p’.

Package

unicly.

Source

unicly-types.lisp.

Function: uuid-hex-string-36-p (maybe-uuid-hex-string-36)

Whether MAYBE-UUID-HEX-STRING-36 is a valid string representation of a UUID.

Return T when MAYBE-UUID-HEX-STRING-36 satisfies the following constraints:

- Its type is ’(array character 36)

- When split to list of strings on #\- delimter the list is of length is 5

- The length of each string in the list matches the pattern 8-4-4-4-12

- each string in the list satisfies ‘mon:string-all-hex-char-p’

:EXAMPLE

(uuid-hex-string-36-p "6ba7b810-9dad-11d1-80b4-00c04fd430c8")

(uuid-hex-string-36-p "6BA7B810-9DAD-11D1-80B4-00C04FD430C8")

;; Following fails successfully:

(uuid-hex-string-36-p "6BA7B810–9DAD-11D1-80B4-00C04FD430C8")

:SEE-ALSO ‘uuid-hex-string-32-p’, ‘uuid-hex-string-32’, ‘%uuid-hex-string-36-null-string-p’ ‘mon:split-string-on-chars’.

Package

unicly.

Source

unicly-types.lisp.

Function: uuid-string-32-p (maybe-object-of-type)

Whether object is of type ‘uuid-string-32’.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-types.lisp.

Function: uuid-string-36-p (maybe-object-of-type)

Whether object is of type ‘uuid-string-36’.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-types.lisp.

Function: uuid-to-bit-vector (uuid)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-version-uuid (uuid)
Package

unicly.

Source

unicly-uuid-version.lisp.


5.1.3 Generic functions

Generic Function: unique-universal-identifier-p (object)

Whether MAYBE-UUID-INSTANCE is a unique-universal-identifier.

Return T if argument is a class instance of ‘unique-universal-identifier’ or one of its subclasses.

:EXAMPLE

(unique-universal-identifier-p *uuid-namespace-dns*)

(unique-universal-identifier-p (uuid-to-bit-vector *uuid-namespace-dns*))

(unique-universal-identifier-p t)

:SEE-ALSO ‘uuid-eql’, ‘unicly::unique-universal-identifier-null-p’.

Package

unicly.

Source

unicly-class.lisp.

Methods
Method: unique-universal-identifier-p ((object unique-universal-identifier))
Method: unique-universal-identifier-p ((object bit-vector))
Method: unique-universal-identifier-p (object)
Generic Function: uuid-eql (uuid-a uuid-b)

Whether object UUID-A is eql UUID-B.

:EXAMPLE

(uuid-eql (make-v5-uuid *uuid-namespace-dns* "bubba")
(make-v5-uuid *uuid-namespace-dns* "bubba"))

(uuid-eql (make-v5-uuid *uuid-namespace-dns* "bubba")
(make-v5-uuid *uuid-namespace-dns* "bubbA"))

(uuid-eql "bubb" "bobby")

(uuid-eql *uuid-null-uuid* *uuid-null-uuid*)

(uuid-eql *uuid-null-uuid* (make-null-uuid))

(uuid-eql (make-null-uuid) *uuid-null-uuid*)

(uuid-eql (make-null-uuid) (%make-null-uuid-loadtime))

(uuid-eql (make-null-uuid) (%make-null-uuid-loadtime))

(uuid-eql (make-null-uuid) (make-instance ’unique-universal-identifier-null))

(uuid-eql (make-instance ’unique-universal-identifier-null) (make-instance ’unique-universal-identifier-null))

(uuid-eql (make-instance ’unique-universal-identifier-null) (make-null-uuid))

(uuid-eql (make-instance ’unique-universal-identifier) (make-null-uuid))

:NOTE When either UUID-A or UUID-B is an instance of the class
‘unicly::unique-universal-identifier-null’ they are only considered to be
‘unicly:uuid-eql’ if both objects are ‘cl:eql’ the value of special variable
‘unicly::*uuid-null-uuid*’.

:SEE-ALSO ‘unique-universal-identifier-p’.

Package

unicly.

Source

unicly-class.lisp.

Methods
Method: uuid-eql ((uuid-a (eql nil)) (uuid-b (eql nil)))
Method: uuid-eql ((uuid-a (eql nil)) (uuid-b unique-universal-identifier-null))
Method: uuid-eql ((uuid-a unique-universal-identifier-null) (uuid-b (eql nil)))
Method: uuid-eql ((uuid-a unique-universal-identifier-null) (uuid-b unique-universal-identifier-null))
Method: uuid-eql ((uuid-a (eql nil)) (uuid-b unique-universal-identifier))
Method: uuid-eql ((uuid-a unique-universal-identifier) (uuid-b (eql nil)))
Method: uuid-eql ((uuid-a unique-universal-identifier-null) (uuid-b unique-universal-identifier))
Method: uuid-eql ((uuid-a unique-universal-identifier) (uuid-b unique-universal-identifier-null))
Method: uuid-eql (uuid-a (uuid-b unique-universal-identifier-null))
Method: uuid-eql ((uuid-a unique-universal-identifier-null) uuid-b)
Method: uuid-eql ((uuid-a unique-universal-identifier) (uuid-b unique-universal-identifier))
Method: uuid-eql ((uuid-a bit-vector) (uuid-b bit-vector))
Method: uuid-eql ((uuid-a bit-vector) (uuid-b unique-universal-identifier))
Method: uuid-eql ((uuid-a unique-universal-identifier) (uuid-b bit-vector))
Method: uuid-eql ((uuid-a unique-universal-identifier) uuid-b)
Method: uuid-eql (uuid-a (uuid-b unique-universal-identifier))
Method: uuid-eql (uuid-a uuid-b)
Generic Function: uuid-princ-to-string (uuid &key)

Return string representation of UUID-INSTANCE as if by ‘cl:princ-to-string’.

:SEE-ALSO ‘uuid-print-bytes-to-string’, ‘uuid-print-bytes’.

Package

unicly.

Source

unicly-class.lisp.

Methods
Method: uuid-princ-to-string ((uuid unique-universal-identifier) &key)
Generic Function: uuid-print-bit-vector (uuid &key stream)

Print the bit-vector representation of UUID in a format suitable to its class to STREAM.

UUID an object representing an instance of ‘unique-universal-identifier’ class or subclass.

STREAM is an output-stream.

:SEE-ALSO ‘uuid-print-bytes-to-string’.

Package

unicly.

Source

unicly-class.lisp.

Methods
Method: uuid-print-bit-vector ((uuid unique-universal-identifier-null) &key stream)

If UUID is ‘unique-universal-identifier-null-p’ print it’s bit-vector representation.

If not, an error is signaled.

:EXAMPLE

(uuid-print-bit-vector (make-null-uuid) nil)

;; Following fails successfully:

(uuid-print-bit-vector (make-instance ’unique-universal-identifier-null) nil)

(find-method (#’uuid-print-bit-vector) nil ’(unique-universal-identifier-null))

:NOTE Only the null-UUID created as if by ‘make-null-uuid’ may have its
uuid-bit-vector-128 representation printed with this method.
IOW, The results are unspecified if and attempt is made to to create null uuid objects as if by:

(make-instance ’unique-universal-identifier-null)

:SEE-ALSO ‘<XREF>’.

Method: uuid-print-bit-vector ((uuid unique-universal-identifier) &key stream)

Print the ‘uuid-bit-vector-128’ representation UUID to STREAM.

UUID is an instance of class ‘unique-universal-identifier’.

:EXAMPLE

(uuid-print-bit-vector (make-v4-uuid) nil)

(find-method #’uuid-print-bit-vector nil ’(t unique-universal-identifier))

:SEE-ALSO ‘uuid-princ-to-string’.

Method: uuid-print-bit-vector ((uuid simple-bit-vector) &key stream)

Print the bit-vector reprsentation of UUID to STREAM.

UUID should be an object of type ‘uuid-bit-vector-128’, an error is signaled if not.

:EXAMPLE

(uuid-print-bit-vector nil (uuid-bit-vector-128-zeroed))

(find-method #’uuid-print-bit-vector nil ’(t simple-bit-vector))

:SEE-ALSO ‘uuid-to-bit-vector’.

Generic Function: uuid-print-bytes-to-string (uuid &key string-or-char-type upcase)

Print the bytes of UUID in a format suitable to its class to a string.

When keyword STRING-OR-CHAR-TYPE is non-nil specializing methods may provide opmitimizations around this arg.

:SEE-ALSO ‘uuid-print-bytes’.

Package

unicly.

Source

unicly-class.lisp.

Methods
Method: uuid-print-bytes-to-string ((uuid vector) &key string-or-char-type upcase)

Print the byte-array representation of UUID in a format suitable to its class to STREAM.

UUID is an object of type ‘uuid-byte-array-16’ representang of an instance of ‘unique-universal-identifier’ class or subclass.
Keyword STRING-OR-CHAR-TYPE is non-nil it is a string or the symbol ’base-char or ’character.

When it is ‘cl:stringp’ and satisfies ‘string-with-fill-pointer-p’ print the
UUID’s hexadecimal byte representation to STRING.

:EXAMPLE

(uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba")))
;=> "eea1105e3681511799b67b2b5fe1f3c7"

(uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba"))
:upcase t)
;=> "EEA1105E3681511799B67B2B5FE1F3C7"

(uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba"))
:string-or-char-type (make-array 32 :element-type ’base-char :fill-pointer 0))
;=> "eea1105e3681511799b67b2b5fe1f3c7"

(uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba"))
:string-or-char-type (make-array 32 :element-type ’character :fill-pointer 0))
;=> "eea1105e3681511799b67b2b5fe1f3c7"

(uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba"))
:string-or-char-type (make-array 32 :element-type ’character :fill-pointer 0)
:upcase t)
;=> "EEA1105E3681511799B67B2B5FE1F3C7"

(type-of (uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba")) :string-or-char-type (make-array 32 :element-type ’character :fill-pointer 0) :upcase t))
;=> (SIMPLE-ARRAY CHARACTER (32))

(type-of (uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba")) :string-or-char-type (make-array 32 :element-type ’base-char :fill-pointer 0) :upcase t))
;=> (SIMPLE-BASE-STRING 32)

(type-of (uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba")) :string-or-char-type (make-array 32 :element-type ’character :fill-pointer 0))) ;=> (AND (VECTOR CHARACTER 32) (NOT SIMPLE-ARRAY))

(type-of (uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba")) :string-or-char-type (make-array 32 :element-type ’base-char :fill-pointer 0))) ;=> (AND (BASE-STRING 32) (NOT SIMPLE-ARRAY))

(type-of (uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba"))))
;=> (AND (BASE-STRING 32) (NOT SIMPLE-ARRAY))

(type-of (uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba")) :string-or-char-type ’character))
;=> (AND (VECTOR CHARACTER 32) (NOT SIMPLE-ARRAY))

(type-of (uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba")) :string-or-char-type ’character
:upcase t))
;=> (SIMPLE-ARRAY CHARACTER (32))

(type-of (uuid-print-bytes-to-string
(uuid-to-byte-array (make-v5-uuid *uuid-namespace-dns* "bubba")) :string-or-char-type ’base-char
:upcase t))
;=> (SIMPLE-BASE-STRING 32)

:SEE-ALSO ‘<XREF>’.

Method: uuid-print-bytes-to-string ((uuid unique-universal-identifier) &key string-or-char-type upcase)

Print bytes of UUID in hexadecimal representation to a ‘uuid-string-32’.

Keyword STRING-OR-CHAR-TYPE is non-nil it is a string or the symbol ’base-char or ’character.
When it is ‘cl:stringp’ and satisfies ‘string-with-fill-pointer-p’
print hexadecimal representation of bytes to STRING.
Default method speciaclized on instances of class ‘unique-universal-identifier’.
:EXAMPLE

(uuid-print-bytes-to-string (make-v4-uuid))

(uuid-print-bytes-to-string (make-v5-uuid *uuid-namespace-dns* "bubba") :upcase t)
(let ((fp-string (make-array 11
:element-type ’base-char
:fill-pointer 11
:initial-contents "UUID-BYTES:")))
(format fp-string "~%")
(uuid-print-bytes-to-string (make-v4-uuid) fp-string))

(type-of
(uuid-print-bytes-to-string (make-v5-uuid *uuid-namespace-dns* "bubba")
:string-or-char-type (make-array 32 :element-type ’base-char :fill-pointer 0) :upcase t))
;=> (SIMPLE-BASE-STRING 32)

(type-of
(uuid-print-bytes-to-string (make-v5-uuid *uuid-namespace-dns* "bubba")
:string-or-char-type (make-array 32 :element-type ’character :fill-pointer 0) :upcase t))
;=> (SIMPLE-ARRAY CHARACTER (32))

(type-of
(uuid-print-bytes-to-string (make-v5-uuid *uuid-namespace-dns* "bubba")
:string-or-char-type (make-array 32 :element-type ’character :fill-pointer 0))) ;=> (AND (VECTOR CHARACTER 32) (NOT SIMPLE-ARRAY))

(type-of
(uuid-print-bytes-to-string (make-v5-uuid *uuid-namespace-dns* "bubba")
:string-or-char-type (make-array 32 :element-type ’base-char :fill-pointer 0))) ;=> (AND (BASE-STRING 32) (NOT SIMPLE-ARRAY))

(type-of (uuid-print-bytes-to-string (make-v5-uuid *uuid-namespace-dns* "bubba")
:string-or-char-type ’character
:upcase t))
;=> (SIMPLE-ARRAY CHARACTER (32))

(type-of (uuid-print-bytes-to-string (make-v5-uuid *uuid-namespace-dns* "bubba")
:string-or-char-type ’base-char
:upcase t))
;=> (SIMPLE-BASE-STRING 32)

(type-of (uuid-print-bytes-to-string (make-v5-uuid *uuid-namespace-dns* "bubba")
:string-or-char-type ’character ))
;=> (AND (VECTOR CHARACTER 32) (NOT SIMPLE-ARRAY))

(type-of (uuid-print-bytes-to-string (make-v5-uuid *uuid-namespace-dns* "bubba")
:string-or-char-type ’base-char ))
;=> (AND (BASE-STRING 32) (NOT SIMPLE-ARRAY))

:NOTE Per RFC4122 Section 3. "Namespace Registration Template"
,—-
| The hexadecimal values "a" through "f" are output as
| lower case characters and are case insensitive on input.
‘—-

:SEE-ALSO ‘uuid-print-bytes’, ‘uuid-print-bit-vector’, ‘uuid-princ-to-string’.


5.1.4 Standalone methods

Method: print-object ((id unique-universal-identifier) stream)

Print instance of class ‘unicly:unique-universal-identifier’ to STREAM in string representation.

:EXAMPLE

(print-object (make-v3-uuid *uuid-namespace-dns* "bubba") nil)

(print-object (make-v5-uuid *uuid-namespace-dns* "bubba") nil)

(print-object (make-v4-uuid) nil)

(print-object (make-null-uuid) nil)

:SEE-ALSO ‘unicly:uuid-print-bytes’, ‘unicly:uuid-princ-to-string’, ‘unicly:uuid-print-bit-vector’, ‘unicly:uuid-print-bytes-to-string’.

Source

unicly-class.lisp.


5.1.5 Classes

Class: unique-universal-identifier

Representation of an UUID.

The string representation of A UUID has the format:


clock-seq-and-reserved
time-mid | clock-seq-low
| | | 6ba7b810-9dad-11d1-80b4-00c04fd430c8
| | |
‘ time-low | ‘ node
‘ time-high-and-version
Each field is treated as an integer and has its value printed as a zero-filled hexadecimal digit string with the most significant digit first.

0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| %uuid_time-low | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| %uuid_time-mid | %uuid_time-high-and-version | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|clk-seq-hi-res | clock-seq-low | %uuid_node (0-1) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| %uuid_node (2-5) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Following table enumates the slot/type/value correspondence for instances of this class:

SLOT TYPE BYTE-ARRAY SIZE ‘%uuid_time-low’ ‘uuid-ub32’ #(<BYTE> <BYTE> <BYTE> <BYTE>), 4 ‘%uuid_time-mid’ ‘uuid-ub16’ #(<BYTE> <BYTE>), 2 ‘%uuid_time-high-and-version’ ‘uuid-ub16’ #(<BYTE> <BYTE>), 2 ‘%uuid_clock-seq-and-reserved’ ‘uuid-ub8’ #(<BYTE>), 1
‘%uuid_clock-seq-low’ ‘uuid-ub8’ #(<BYTE>), 1
‘%uuid_node’ ‘uuid-ub48’ #(<BYTE> <BYTE> <BYTE> <BYTE> <BYTE> <BYTE>), 6

While RFC4122 specifically indicates that certain bits of a UUID shall not be
set and/or are reserved for future use, were the full range of its 128 bit
integer representation used it could have an upper bounds with the decimal representation: 340282366920938463463374607431768211455 e.g.:

(integer-length 340282366920938463463374607431768211455)
=> 128

In long-form this number is:

340,282,366,920,938,463,463,374,607,431,768,211,455 340 undecillion, 282
decillion, 366 nonillion, 920 octillion, 938 septillion, 463 sextillion, 463 quintillion, 374 quadrillion, 607 trillion, 431 billion, 768 million, 211
thousand and 455

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-class.lisp.

Direct subclasses

unique-universal-identifier-null.

Direct methods
Direct slots
Slot: %uuid_time-low

An integer of type ‘uuid-ub32’.

The low field of a UUID record’s timestamp.
Referenced as the ‘time_low‘ field in RFC4122.

Occurs in a UUID ‘uuid-byte-array-16’ representation as a 4 octet value at
offset 0 through index 3.

A digested UUID’s byte-array octets are accessible with ‘%uuid_time-low-request’.

Occurs in a UUID ‘uuid-bit-vector-128’ representation from offset 0 through index 31.

Occurs as the 0 element in a UUID string delimited by #\-.

Its string representation is 8 hexadecimal characters.

Type

unicly::uuid-ub32

Initform

0

Initargs

:%uuid_time-low

Slot: %uuid_time-mid

An integer of type ‘uuid-ub16’.

The middle field of a UUID record’s timestamp.
Referenced as the ‘time_mid‘ field in RFC4122.

Occurs in a UUID ‘uuid-byte-array-16’ representation as a 2 octet value at offset 4 through index 5.

A digested UUID’s byte-array octets are accessible with ‘%uuid_time-mid-request’.

Occurs in a UUID ‘uuid-bit-vector-128’ representation from offset 32 through index 47.

Occurs as the 1 element in a UUID string delimited by #\-.

Its string representation is 4 hexadecimal characters.

Type

unicly::uuid-ub16

Initform

0

Initargs

:%uuid_time-mid

Slot: %uuid_time-high-and-version

An integer of type ‘uuid-ub16’.

The high field of a UUID record’s bit integer timestamp multiplexed with its version. Referenced as the ‘time_high_and_version‘ field in RFC4122.

Occurs in a UUID ‘uuid-byte-array-16’ representation as a 2 octet value at offset
6 through index 7.

A digested UUID’s byte-array octets are accessible with ‘%uuid_time-high-and-version-request’.

Occurs in a UUID ‘uuid-bit-vector-128’ representation from offset 48 through index 63. :NOTE Per RFC4122 Section 4.1.3, bit 48 should always be 0.

Occurs as the 2 element in a UUID string delimited by #\-.

Its string representation is 4 hexadecimal characters.

Type

unicly::uuid-ub16

Initform

0

Initargs

:%uuid_time-high-and-version

Slot: %uuid_clock-seq-and-reserved

An integer of type ‘uuid-ub8’.

The high field of a UUID record’s bit integer clock sequence multiplexed with its variant. Referenced as the ‘clock_seq_hi_and_reserved‘ field of RFC4122.

Occurs in a UUID uuid-byte-array-16 representation as an octet value at offset 8.

Occurs in a UUID ‘uuid-bit-vector-128’ representation from offset 64 through index 71.

A digested UUIDs byte-array octets are accessible with ‘%uuid_clock-seq-and-reserved-request’.

Occurs in the upper portion of the 3 element in a UUID string delimited by #\-.

Its string representation is 2 hexadecimal characters.

:NOTE As referenced in RFC4122 Section 4.1.1, the bits of this integer carry the
UUID’s variant layout/type with the top 3 most significant bits formatted as follows:

Msb0 Msb1 Msb2
1 0 x ; where X indicates a "don’t care" value

:NOTE UUID v3, v4, v5 instances of this class will have the relevenat portions
of their bit fields returned in the above configuration.

Type

unicly::uuid-ub8

Initform

0

Initargs

:%uuid_clock-seq-and-reserved

Slot: %uuid_clock-seq-low

An integer of type ‘uuid-ub8’.

The low field of the UUID record’s bit integer clock sequence.
Referenced as the ‘clock_seq_low‘ field of RFC4122.

Occurs in a UUID ‘uuid-byte-array-16’ representation as an octet value at offset 9.

A digested UUIDs byte-array octets are accessible with ‘%uuid_clock-seq-low-request’.

Occurs in a UUID ‘uuid-bit-vector-128’ representation from offset 72 through index 79.

Occurs in the lower portion of the 3 element in a UUID string delimited by #\-.

Its string representation is 2 hexadecimal characters.

Type

unicly::uuid-ub8

Initform

0

Initargs

:%uuid_clock-seq-low

Slot: %uuid_node

An integer of type ‘uuid-ub48’.

The "spatially unique" identifier portion of a UUID record’s bit integer.
Referenced as the ‘node‘ field of RFC4122.

Occurs in a UUID uuid-byte-array-16 representation as a 6 octet value at offset 10 through index 15. A digested UUID’s byte-array octets are accessible with ‘%uuid_node-request’.
:NOTE a digest v5 UUID is initally an object of type ‘uuid-byte-array-20’ with offest 16-19 truncated.

Occurs in a UUID ‘uuid-bit-vector-128’ representation from offset 79 through 127.

Occurs as the final or 4 element in a UUID string delimited by #\-.

Its string representation is 12 hexadecimal characters.

Type

unicly::uuid-ub48

Initform

0

Initargs

:%uuid_node


5.2 Internals


5.2.1 Constants

Constant: +%%uuid-sxhash-truncating-node%%+
Package

unicly.

Source

unicly-hash-table.lisp.

Constant: +uuid-null-string+
Package

unicly.

Source

unicly-specials.lisp.


5.2.2 Special variables

Special Variable: *author-maintainer-contact*
Package

unicly-asd.

Source

unicly.asd.

Special Variable: *hexadecimal-chars*
Package

unicly.

Source

unicly-utils.lisp.

Special Variable: *random-state-uuid*

A random-state objet for use when generating UUIDv4 UUIDs.

:EXAMPLE

*random-state-uuid*

(random-state-p *random-state-uuid*)

:SEE-ALSO ‘cl:random-state’, ‘cl:random-state-p’.

Package

unicly.

Source

unicly-specials.lisp.

Special Variable: *uuid-allow-empty-string-name-args*

When value is null ‘make-v3-uuid’ and ‘make-v5-uuid’ will error when their NAME argumement is not of type ‘unicly::string-not-empty’.

:SEE-ALSO ‘*uuid-allow-null-like-namespace-args*’, ‘unicly::verify-sane-namespace-and-name’, ‘unicly::%verify-non-empty-name-arg’, ‘unicly::%verify-non-null-namespace-arg’.

Package

unicly.

Source

unicly-specials.lisp.

Special Variable: *uuid-allow-null-like-namespace-args*

When value is null, ‘make-v3-uuid’ and ‘make-v5-uuid’ will error when their
NAMESPACE argumement is an instance of the class ‘unique-universal-identifier’
with all of its slot-values satisfying ‘cl:zerop’ but which doesn’t satisfy ‘unique-universal-identifier-null-p’.

:NOTE RFC 4122 probably didn’t have CLOS in mind w/r/t the null-uuid and as
such when either of the following type of object is allowed as a NAMESPACE
argument it may produce unexpected results and with unexpected consequences
which may not be easily detected after the fact:

(unique-universal-identifier-null-p (make-instance ’unique-universal-identifier)) (unique-universal-identifier-null-p (make-instance ’unique-universal-identifier-null)) (unique-universal-identifier-null-p (make-instance ’mop-frobbed-subclass-of-unique-universal-identifier)) Their may be a performance impact when this argument is nil (the default) b/c we
will have to check the slot-values of each namespace arg for each evaluation
of ‘make-v5-uuid’ / ‘make-v3-uuid’.

A reasonable way to avoid this impact is to cache the NAMESPACEs common to a
class you control and dynamically bind this variable inside a wrapper function:

(make-v5-uuid-with-cached-namespace (name)
(let ((*uuid-allow-null-like-namespace-args* t))
(make-v5-uuid <CACHED-NAMESPACE> name)))

:SEE-ALSO ‘*uuid-allow-empty-string-name-args*’, ‘unicly::verify-sane-namespace-and-name’, ‘unicly::%verify-non-empty-name-arg’,
‘unicly::%verify-non-null-namespace-arg’.

Package

unicly.

Source

unicly-specials.lisp.

Special Variable: *uuid-null-uuid*

The default null-uuid per RFC4122 Section 4.1.7 "Nil UUID".

The value of this variable is initialized at loadtime with ‘unicly::%make-null-uuid-loadtime’.

User code should not neither direclty access nor set the value of this
variable and should instead always use ‘unicly:make-null-uuid’!

It is an an object of type ‘unicly::unique-universal-identifier-null’.

The value of this variable should always evalute to the same object as there
are methods specialized it, e.g.:

(uuid-eql *uuid-null-uuid* *uuid-null-uuid*)

(uuid-eql *uuid-null-uuid* (make-null-uuid))

(uuid-eql (make-null-uuid) *uuid-null-uuid*)

(uuid-eql *uuid-null-uuid* (make-instance ’unicly::unique-universal-identifier-null))

(uuid-eql *uuid-null-uuid* (make-instance ’unicly::unique-universal-identifier))

:NOTE The value of this variable should always return t for the following:

(and (slot-exists-p *uuid-null-uuid* ’%uuid_null)
(slot-value *uuid-null-uuid* ’%uuid_null))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-specials.lisp.


5.2.3 Macros

Macro: def-indexed-hexstring-integer-parser (fun-name vec-index string-type-at-index string-start string-end string-integer-type)

Convenience macro for defining functions which ‘cl:parse-integer’ of the
simple-array character elements returnd as nth-value 1 as an object of type ‘uuid-simple-vector-5’ by ‘uuid-hex-string-36-p’

FUN-NAME is a string used when generating a function-name to intern in the UNICLY package. String should not be preceded/trailed by #\- or whitespace.

Arg VEC-INDEX is an integer value of type (mod 5) indicating an index into the
return value of ‘uuid-hex-string-36-p’.

Arg STRING-TYPE-AT-INDEX is an unqouted symol naming a subtype of ‘uuid-hex-string-length’. Valid types are:

‘uuid-hex-string-8’ ‘uuid-hex-string-4’ ‘uuid-hex-string-12’

Arg STRING-START is a postivie integer indicating the lower bounds of the
hex-string located at VEC-INDEX.

Arg STRING-END is a postivie integer value indicating an upper bounds of the hex-string located at VEC-INDEX.

STRING-INTEGER-TYPE Is an unquoted symbol naming an uuid unsigned-byte type to
declare for the value returned by ‘cl:parse-integer’ of the string at
VEC-INDEX. Valid types are:

‘uuid-ub32’ ‘uuid-ub16’ ‘uuid-ub8’ ‘uuid-ub48’

Expands to a function defining form with the following format:

(defun <FUN-NAME> (hex-vector-5)
(declare (uuid-simple-vector-5 hex-vector-5)
(optimize (speed 3)))
(uuid-string-parse-integer
(uuid-svref-for-parse-integer HEX-VECTOR-5 <VEC-INDEX> <STRING-TYPE-AT-INDEX>) <STRING-START> <STRING-END> <STRING-INTEGER-TYPE> ))

:EXAMPLE

(macroexpand-1 ’(def-indexed-hexstring-integer-parser
"time-low"
0
uuid-hex-string-8
0 8 uuid-ub32))

:SEE-ALSO ‘uuid-hex-vector-parse-time-low’, ‘uuid-hex-vector-parse-time-mid’, ‘uuid-hex-vector-parse-time-high-and-version’, ‘uuid-hex-vector-parse-clock-seq-and-reserved’,
‘uuid-hex-vector-parse-clock-seq-low’, ‘uuid-hex-vector-parse-node’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: def-make-uuid-byte-array-extended (make-extended-suffix extended-class &optional no-verify)
Package

unicly.

Source

unicly-extend.lisp.

Macro: def-make-uuid-extend-class-fun (make-extended-suffix extended-class)

Define functions which provide a the equivalent of the Unicly uuid API for subclasses of the class ‘unicly:unique-universal-identifier’.

MAKE-EXTENDED-SUFFIX is a non-quoted symbol which is appended to the symbol-name of each defined function.

EXTENDED-CLASS is a non-quoted which designates a valid subclass of the class ‘unicly:unique-universal-identifier’.

Following table outlines the correspondence of extended functions defined with their standard Unicly counterparts:

Extended Unicly API function Standard Unicly API function

make-v3-uuid-<FOO> ‘make-v3-uuid’
make-v4-uuid-<FOO> ‘make-v4-uuid’
make-v5-uuid-<FOO> ‘make-v5-uuid’ make-uuid-from-string-<FOO> ‘make-uuid-from-string’ make-uuid-from-byte-array-<FOO> ‘uuid-from-byte-array’ make-uuid-from-bit-vector-<FOO> ‘uuid-from-bit-vector’

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-extend.lisp.

Macro: def-make-uuid-from-string-extended (make-extended-suffix extended-class &optional no-verify)
Package

unicly.

Source

unicly-extend.lisp.

Macro: def-make-v3-uuid-extended (make-v3-uuid-suffix v3-uuid-class &optional no-verify)
Package

unicly.

Source

unicly-extend.lisp.

Macro: def-make-v4-uuid-extended (make-v4-uuid-suffix v4-uuid-class &optional no-verify)
Package

unicly.

Source

unicly-extend.lisp.

Macro: def-make-v5-uuid-extended (make-v5-uuid-suffix v5-uuid-class &optional no-verify)
Package

unicly.

Source

unicly-extend.lisp.

Macro: def-uuid-bit-vector-length-type (bv-length)

Convenience macro for defining subtypes of type ‘uuid-bit-vector-length’.

Arg BV-LENGTH is an positive integer value indicating the length of a uuid-bit-vector.

:EXAMPLE

(macroexpand-1 ’(def-uuid-bit-vector-length-type 16))

:SEE-ALSO ‘def-uuid-type-definer’, ‘def-uuid-unsigned-byte-size’, ‘def-uuid-bit-vector-N-type’, ‘def-uuid-bit-vector-length-type’, ‘def-uuid-unsigned-byte-integer-length’,
‘def-uuid-uuid-hex-string-length’, ‘def-uuid-byte-array-length’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-bit-vector-n-type (bv-length-type)

Convenience macro for defining subtypes of type ‘uuid-bit-vector’.

Arg BV-LENGTH-TYPE is an positive integer value indicating the number of bits in a uuid-bit-vector.

:EXAMPLE

(macroexpand-1 ’(def-uuid-bit-vector-N-type 16))

:SEE-ALSO ‘def-uuid-type-definer’, ‘def-uuid-unsigned-byte-size’,
‘def-uuid-bit-vector-N-type’, ‘def-uuid-bit-vector-length-type’, ‘def-uuid-unsigned-byte-integer-length’,
‘def-uuid-uuid-hex-string-length’, ‘def-uuid-byte-array-length’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-bit-vector-zeroed (zeroed-size)
Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-byte-array-length (byte-array-length)

Convenience macro for defining subtypes of type ‘uuid-byte-array’.

BYTE-ARRAY-LENGTH is a positive integer indication the length of a simple-array with elements of type ‘uuid-ub8’. :EXAMPLE

(macroexpand-1 ’(def-uuid-byte-array-length 16))

:SEE-ALSO ‘def-uuid-type-definer’, ‘def-uuid-unsigned-byte-size’,
‘def-uuid-bit-vector-N-type’, ‘def-uuid-bit-vector-length-type’,
‘def-uuid-unsigned-byte-integer-length’,
‘def-uuid-uuid-hex-string-length’, ‘def-uuid-byte-array-length’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-from-bit-vector-extendable (make-uuid-from-bv-suffix uuid-bv-class &optional no-verify)
Package

unicly.

Source

unicly-extend.lisp.

Macro: def-uuid-predicate-and-type-check-definer (type-for-pred-and-check)

Convenience macro for defining predicate and check-type functions for Unicly types.

TYPE-FOR-PRED-AND-CHECK is a token designating an existing type-specifier.
Its symbol-name is used to generate two symbol-names to use as function names when defining a the predicate and check-type functions.
Generated predicate name has the form:

<TYPE-FOR-PRED-AND-CHECK>-P
Generated check-type name has the form:
<TYPE-FOR-PRED-AND-CHECK>-CHECK-TYPE
So given the type specifier UUID-BIT-VECTOR-8
the following two functions would be definened:
uuid-bit-vector-8-p uuid-bit-vector-8-check-type
In the case, uuid-bit-vector-8-check-type is defined with a body which checks if
some value satisfies uuid-bit-vector-8-p and if not signals a condition of type ‘uuid-simple-type-error’ its body having the format:

(unless (uuid-bit-vector-8-p <SOME-VALUE>)
(uuid-simple-type-error :datum <SOME-VALUE>
:expected-type uuid-bit-vector-8))

:EXAMPLE

(macroexpand-1 ’(def-uuid-predicate-and-type-check-definer uuid-bit-vector-32)) (macroexpand-all ’(def-uuid-predicate-and-type-check-definer uuid-bit-vector-32))

:NOTE The body of this macro expands into two addtional macros:

‘unicly::def-uuid-type-predicate-definer’
‘unicly::def-uuid-type-check-definer’

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-request-integer-bit-vector (def-name bit-offset bit-width)

Convenience macro for functions which extract slot values of class ‘unique-universal-identifier’.

:EXAMPLE

(macroexpand-1 ’(def-uuid-request-integer-bit-vector "time-low" 0 32))

(macroexpand-1 ’(def-uuid-request-integer-bit-vector "time-mid" 32 16))

(macroexpand-1 ’(def-uuid-request-integer-bit-vector "time-high-and-version" 48 16))

(macroexpand-1 ’(def-uuid-request-integer-bit-vector "clock-seq-and-reserved" 64 8))

(macroexpand-1 ’(def-uuid-request-integer-bit-vector "clock-seq-low" 72 8))

(macroexpand-1 ’(def-uuid-request-integer-bit-vector "node" 80 48))

:SEE-ALSO
‘%uuid_time-low-request-bit-vector’, ‘%uuid_time-mid-request-bit-vector’, ‘%uuid_time-high-and-version-request-bit-vector’, ‘%uuid_clock-seq-and-reserved-request-bit-vector’,
‘%uuid_clock-seq-low-request-bit-vector’, ‘%uuid_node-request-bit-vector’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-type-check-definer (type-check-name name-predicate checked-type)
Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-type-definer (parent-type format-string length-arg)

Convenience macro for use by macros which define uuid sub-type specifiers.

Arg PARENT-TYPE is an unquoted symbol naming a uuid-type specifer which
accepts a positive integer value as an argument.

FORMAT-STRING is a format-string used to generate the symbol-name of the type to be defined. The types defined with by expanders of this macro have an integer value as
part of theier symbol name, as such format-string should contain the
format-control flag "~D" in an appropriate position.

LENGTH-ARG an positive integer value. It is used as the format-argument to
FORMAT-STRING and as the argument to its PARENT-TYPE.

:EXAMPLE

(macroexpand-1 ’(def-uuid-type-definer uuid-bit-vector "UUID-BIT-VECTOR-~D" 128))

:SEE-ALSO ‘def-uuid-type-definer’, ‘def-uuid-unsigned-byte-size’, ‘def-uuid-bit-vector-N-type’, ‘def-uuid-bit-vector-length-type’, ‘def-uuid-unsigned-byte-integer-length’,
‘def-uuid-uuid-hex-string-length’, ‘def-uuid-byte-array-length’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-type-predicate-definer (predicate-name type-to-check)
Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-unsigned-byte-integer-length (unsigned-length)

Convenience macro for defining subtypes of type ‘uuid-unsigned-byte-integer-length’.

Arg UNSIGNED-LENGTH is an positive integer value indicating the
integer-length of the integer represetned at the upper-bounds of an unsigned-byte.

:EXAMPLE

(macroexpand-1 ’(def-uuid-unsigned-byte-integer-length 16))

:SEE-ALSO ‘def-uuid-type-definer’, ‘def-uuid-unsigned-byte-size’, ‘def-uuid-bit-vector-N-type’, ‘def-uuid-bit-vector-length-type’, ‘def-uuid-unsigned-byte-integer-length’,
‘def-uuid-uuid-hex-string-length’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-unsigned-byte-size (size-bytes)

Convenience macro for defining subtypes of type ‘uuid-unsigned-byte-size’.

Arg SIZE-BYTES is an positive integer value indicating the size of an unsigned-byte.

:EXAMPLE

(macroexpand-1 ’(def-uuid-unsigned-byte-size 128))

:SEE-ALSO ‘def-uuid-type-definer’, ‘def-uuid-unsigned-byte-size’, ‘def-uuid-bit-vector-N-type’, ‘def-uuid-bit-vector-length-type’, ‘def-uuid-unsigned-byte-integer-length’,
‘def-uuid-uuid-hex-string-length’, ‘def-uuid-byte-array-length’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: def-uuid-uuid-hex-string-length (hex-string-length)

Convenience macro for defining subtypes of type ‘uuid-hex-string-length’.

Arg HEX-STRING-LENGTH is an positive integer value indicating the length of a simple-array of characters.

:EXAMPLE

(macroexpand-1 ’(def-uuid-uuid-hex-string-length 12))

:SEE-ALSO ‘def-uuid-type-definer’, ‘def-uuid-unsigned-byte-size’,
‘def-uuid-bit-vector-N-type’, ‘def-uuid-bit-vector-length-type’, ‘def-uuid-unsigned-byte-integer-length’,
‘def-uuid-uuid-hex-string-length’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: defconst (name value &optional doc)
Package

unicly.

Source

unicly-specials.lisp.

Macro: uuid-string-parse-integer (uuid-hex-string start end integer-type)

Helper macro for ‘make-uuid-from-string’ to ‘cl:parse-integer’ a hex-string.

Wraps macro ‘uuid-svref-for-parse-integer’.

Wrapped by macro ‘def-indexed-hexstring-integer-parser’.

Arg UUID-HEX-STRING is a ‘uuid-hex-string-36’ or a subtype.

Arg START is a lower bounds indexing into UUID-HEX-STRING.

Arg END is an upper bounds indexing into UUID-HEX-STRING.

INTEGER-TYPE is an unquoted symbol naming the type of uuid-unsigned-byte-size to
declare for the value returned by ‘cl:parse-integer’ of the hex-string at at
index bounded by START and END Valid types are:

‘uuid-ub32’ ‘uuid-ub16’ ‘uuid-ub8’ ‘uuid-ub48’

:EXAMPLE

(macroexpand-1 ’(uuid-string-parse-integer "6ba7b810-9dad-11d1-80b4-00c04fd430c8" 0 8 uuid-ub32))

(let ((uuid-str "6ba7b810-9dad-11d1-80b4-00c04fd430c8")
(parse-specs ’((0 8 uuid-ub32)
(9 13 uuid-ub16)
(14 18 uuid-ub16)
(19 21 uuid-ub8)
(21 23 uuid-ub8)
(24 36 uuid-ub48)))
(gthr ’()))
(dolist (m parse-specs (setf gthr (nreverse gthr)))
(push (apply #’uuid-string-parse-integer m) gthr)))

:SEE-ALSO ‘make-uuid-from-string-if’.

Package

unicly.

Source

unicly-macros.lisp.

Macro: uuid-svref-for-parse-integer (simple-vector-5 index string-type)

Convenience macro for declared references to STRING-TYPEs at INDEX of SIMPLE-VECTOR-5.

Wrapped by macros ‘def-indexed-hexstring-integer-parser’ and ‘uuid-string-parse-integer’.

SIMPLE-VECTOR-5 is an object of type ‘uuid-simple-vector-5’ as returned as the ‘cl:nth-value’ 1 of ‘uuid-hex-string-36-p’.

STRING-TYPE is a subtype of ‘uuid-hex-string-length’

Arg STRING-TYPE is an unqouted symol naming the type of string at INDEX. It
should be a subtype of ‘uuid-hex-string-length’. Valid types are:

‘uuid-hex-string-8’ ‘uuid-hex-string-4’ ‘uuid-hex-string-12’

:EXAMPLE

(macroexpand-1 ’(uuid-svref-for-parse-integer
(nth-value 1 (uuid-hex-string-36-p (uuid-princ-to-string (make-v4-uuid)))) 4 uuid-hex-string-12))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-macros.lisp.


5.2.4 Compiler macros

Compiler Macro: uuid-request-integer (array offset length &key little-endian sign-extend)
Package

unicly.

Source

unicly-integers.lisp.


5.2.5 Ordinary functions

Function: %def-uuid-format-and-intern-symbol (format-string format-arg)
Package

unicly.

Source

unicly-macros.lisp.

Function: %def-uuid-format-and-intern-symbol-type-checker (type-symbol-or-string)
Package

unicly.

Source

unicly-macros.lisp.

Function: %def-uuid-format-and-intern-symbol-type-predicate (type-symbol-or-string)
Package

unicly.

Source

unicly-macros.lisp.

Function: %lw-string-zerop (string)
Package

unicly.

Source

unicly-utils.lisp.

Function: %make-null-uuid-loadtime ()
Package

unicly.

Source

unicly-class.lisp.

Function: %make-uuid-from-bit-vector-extendable-bv-zeroed-error (maybe-valid-uuid-bit-vector)

Return MAYBE-VALID-UUID-BIT-VECTOR or error if it is ‘unicly::uuid-bit-vector-null-p’.

:EXAMPLE

(let ((zero-bits (uuid-bit-vector-128-zeroed)))
(setf (sbit zero-bits 0) 1)
(%make-uuid-from-bit-vector-extendable-bv-zeroed-error zero-bits))

Following each fail succesfully:

(%make-uuid-from-bit-vector-extendable-bv-zeroed-error (make-array 129 :element-type ’bit :initial-element 1))

(%make-uuid-from-bit-vector-extendable-bv-zeroed-error (make-array 129 :element-type ’bit :initial-element 1))

(%make-uuid-from-bit-vector-extendable-bv-zeroed-error (make-array 16 :element-type ’bit))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-extend.lisp.

Function: %make-uuid-from-byte-array-extended-null-array-error (maybe-valid-uuid-byte-array)

Return MAYBE-VALID-UUID-BYTE-ARRAY if it is of type of type
‘unicly:uuid-byte-array-16’ without without all octets ‘cl:zerop’, if not an
error is signaled.

:EXAMPLE

(%make-uuid-from-byte-array-extended-null-array-error (uuid-to-byte-array (make-v4-uuid)))

(%make-uuid-from-byte-array-extended-null-array-error (uuid-byte-array-16-zeroed))

(null
(ignore-errors
(%make-uuid-from-byte-array-extended-null-array-error
(make-array 3 :element-type ’uuid-ub8 :initial-contents #(255 255 255)))))

(null (ignore-errors (%make-uuid-from-byte-array-extended-null-array-error (uuid-byte-array-16-zeroed))))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-extend.lisp.

Function: %make-uuid-from-string-extended-null-string-error (maybe-valid-uuid-hex-string-36)

Return MAYBE-VALID-UUID-HEX-STRING-36 if it is not ‘cl:string=’ the constant ‘unicly::+uuid-null-string+’.

MAYBE-VALID-UUID-HEX-STRING-36 is a string of type ‘unicly::uuid-string-36’.

:EXAMPLE

(%make-uuid-from-string-extended-null-string-error "eea1105e-3681-5117-99b6-7b2b5fe1f3c7")

(%make-uuid-from-string-extended-null-string-error "not-a-valid-uuid-string-36")

(null (ignore-errors (%make-uuid-from-string-extended-null-string-error "00000000-0000-0000-0000-000000000000")))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-extend.lisp.

Function: %string-not-empty-p (maybe-not-null-or-empty-string)
Package

unicly.

Source

unicly-utils.lisp.

Function: %unique-universal-identifier-null-p (object)
Package

unicly.

Source

unicly-class.lisp.

Function: %uuid-bit-vector-null-p (bit-vector-maybe-null)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: %uuid-byte-array-null-p (byte-array-maybe-null)
Package

unicly.

Source

unicly-types.lisp.

Function: %uuid-digest-uuid-instance-md5 (namespace name)
Package

unicly.

Source

unicly.lisp.

Function: %uuid-digest-uuid-instance-sha1 (namespace name)
Package

unicly.

Source

unicly.lisp.

Function: %uuid-hex-string-36-null-string-p (split-vec)

Whether MAYBE-ALL-ZERO-OR-DASH-STRING-36 is of type ‘uuid-hex-string-36’ every character is ‘cl:char=’ either #\0 or #\-.

:EXAMPLE

(%uuid-hex-string-36-null-string-p "00000000-0000-0000-0000-000000000000")

(%uuid-hex-string-36-null-string-p "00000000-0000-0000-0000-000000000001")

:SEE-ALSO ‘uuid-hex-string-36-p’.

Package

unicly.

Source

unicly-types.lisp.

Function: %uuid-octets-to-string (convert-byte-array)
Package

unicly.

Source

unicly-bridge.lisp.

Function: %uuid-string-to-octets (name-arg)
Package

unicly.

Source

unicly-bridge.lisp.

Function: %uuid-uuid-version-if (uuid-time-high-and-version uuid)
Package

unicly.

Source

unicly-uuid-version.lisp.

Function: %uuid-version-bit-vector-if (uuid-bit-vector)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: %uuid_byte-array-16-ub8-reqeust (byte-array offset)
Package

unicly.

Source

unicly-integers.lisp.

Function: %uuid_clock-seq-and-reserved-request (byte-array)

Steps seven and eight of RFC4122 Section 4.3:

Step seven:

- Set the clock_seq_hi_and_reserved field to octet 8 of the digest hash.

Step eight:

- Set the two most significant bits (bits 6 and 7) of the clock_seq_hi_and_reserved to zero and one, respectively. IOW, set bit 6 to 0 - Set bit 7 to 1

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: %uuid_clock-seq-and-reserved-request-bit-vector (bit-vector-128)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: %uuid_clock-seq-low-request (byte-array)

Step nine of RFC4122 Section 4.3:

- Set the clock_seq_low field to octet 9 of the hash.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: %uuid_clock-seq-low-request-bit-vector (bit-vector-128)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: %uuid_node-request (byte-array)

Step ten or RFC4122 Section 4.3:

- Set octets zero through five of the node field to octets 10 through 15 of the digest hash.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: %uuid_node-request-bit-vector (bit-vector-128)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: %uuid_time-high-and-version-request (byte-array version)

Steps five and six of RFC4122 Section 4.3:

Step five:

- Set octets zero and one of the time_hi_and_version field to octets 6 and 7 of the digest hash.

Step six:

- Set the four most significant bits (bits 12 through 15) of the time_hi_and_version field to the appropriate 4-bit version number per the table below.

Msb0 Msb1 Msb2 Msb3 Version
0 1 0 1 5
0 0 1 1 3
0 1 0 0 4 ; :NOTE Not relevant to this operation.

MSB LSB
0 0 1 1 0 0 0 0 0 0 1 1 1 0 0 1 ; v3
0 1 0 1 0 0 0 0 0 0 1 1 1 0 0 1 ; v5
0 1 0 0 0 0 0 0 0 0 1 1 1 0 0 1 ; v4
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
!———!

UUID v3 bit-field
12345 => #b0011000000111001 (length "0011000000111001") => 16 #b0011000000111001
!–!

UUID v5 bit-field
20759 => #b0101000100010111 (length "0101000100010111") => 16 #b0101000100010111
!–!

UUID v4 bit-field
:NOTE Per RFC 4.1.3 bit 48 in a uuid-bit-vector-128 should always be 0. :EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: %uuid_time-high-and-version-request-bit-vector (bit-vector-128)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: %uuid_time-low-request (byte-array)

Step three of RFC4122 Section 4.3:

- Set octets zero through 3 of the time_low field to octets zero through 3 of the digest hash.

:EXAMPLE

(%uuid_time-low-request (uuid-get-namespace-bytes (make-v5-uuid *uuid-namespace-dns* "bubba")))

(%uuid_time-low-request (uuid-get-namespace-bytes (make-v3-uuid *uuid-namespace-dns* "bubba")))

(%uuid_time-low-request (uuid-get-namespace-bytes (make-v4-uuid *uuid-namespace-dns* "bubba")))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: %uuid_time-low-request-bit-vector (bit-vector-128)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: %uuid_time-mid-request (byte-array)

Step four of RFC4122 Section 4.3:

- Set octets zero and one of the time_mid field to octets 4 and 5 of the digest hash.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: %uuid_time-mid-request-bit-vector (bit-vector-128)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: %verify-digest-version (chk-version)

Return one of the symbols :MD5 or :SHA1 depending on value of CHK-VERSION. When CHK-VERSION is 3 return :MD5

When CHK-VERSION is 5 return :SHA1

CHK-VERSION should satisfy ‘%verify-version-3-or-5’, an error is signaled if not.

Helper function for ‘uuid-digest-uuid-string’

:EXAMPLE

(%verify-digest-version 3)

(%verify-digest-version 5)

;; Following fails successfully:

(%verify-digest-version 6)

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: %verify-non-empty-name-arg (name-arg)

If value of ‘unicly::*uuid-allow-empty-string-name-args*’ is T retrun NAME-ARG.

If value of NAME-ARG is of type ‘unicly::string-not-empty’ retrun NAME-ARG,
if not and error is signaled.

:EXAMPLE

(%verify-non-empty-name-arg "bubba")
(let ((*uuid-allow-empty-string-name-args* t))
(%verify-non-empty-name-arg ""))
(null (ignore-errors (%verify-non-empty-name-arg "")))
:SEE-ALSO ‘unicly::verify-sane-namespace-and-name’, ‘unicly::%verify-non-null-namespace-arg’.

Package

unicly.

Source

unicly-null-check.lisp.

Function: %verify-non-null-namespace-arg (namespace-arg)
Package

unicly.

Source

unicly-null-check.lisp.

Function: %verify-slot-boundp-and-type (verify-uuid)

Check that VERIFY-UUID has all slots ‘cl:slot-boundp’ and of the correct type.

Signal either a ‘cl:simple-condition’ or ‘cl:type-error’ error if not.

Helper function for ‘uuid-copy-uuid’.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-class.lisp.

Function: %verify-valid-subclass-and-slots (subclass-to-verify)

Return SUBCLASS-TO-VERIFY when SUBCLASS-TO-VERIFY satisfies both:

‘unicly::%verify-valid-uuid-subclass-type’ ‘unicly::%verify-valid-uuid-subclass-slots’

If not, an error is signaled.

SUBCLASS-TO-VERIFY is a symbol designating a class which subclasses the class ‘unicly:unique-universal-identifier’.

:EXAMPLE

(%verify-valid-subclass-and-slots ’indexable-uuid) ; assuming it exists

(null (ignore-errors (%verify-valid-subclass-and-slots ’unique-universal-identifier)))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-extend.lisp.

Function: %verify-valid-uuid-subclass-slots (class-to-verify)

Instantiate an instance of CLASS-TO-VERIFY as if by ‘cl:make-instance’ and
ensure that each slot of the class ’unicly:unique-universal-identifier is
‘cl:slot-exists-p’ for the instantiated instance and that their default
‘cl:slot-value’ is ‘cl:zerop’, if so return CLASS-TO-VERIFY, if not, an error is
signaled.

:EXAMPLE

(%verify-valid-uuid-subclass-slots ’unique-universal-identifier)

:NOTE The evaluation of ‘cl:make-instance’ should finalize CLASS-TO-VERIFY if it is not already.

:NOTE This function is evaluated _after_ ‘unicly::%verify-valid-uuid-subclass’
by ‘unicly::%verify-valid-subclass-and-slots’ and is not evaluated when class CLASS-TO-VERIFY is not a valid subclass of the class ‘unicly::unique-universal-identifier’

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-extend.lisp.

Function: %verify-valid-uuid-subclass-type (maybe-valid-uuid-subclass)

Return MAYBE-VALID-UUID-SUBCLASS if it is verifiably ‘cl:subtypep’ the class ‘unicly:unique-universal-identifier’ and not ‘cl:eq’ the symbol UNIQUE-UNIVERSAL-IDENTIFIER, an error is signaled if not.

MAYBE-VALID-UUID-SUBCLASS is a symbol designating a subclass.

:EXAMPLE

(null (ignore-errors (%verify-valid-uuid-subclass-type ’unique-universal-identifier)))

(null (ignore-errors (%verify-valid-uuid-subclass-type 42)))

(null (ignore-errors (%verify-valid-uuid-subclass-type ’cl:structure-class)))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-extend.lisp.

Function: %verify-version-3-or-5 (version)

Verify that arg VERSION is either the integer 3 or 5.

Signal an error if not.
Helper function for ‘digested-v3or5-uuid’.

:EXAMPLE

(%verify-version-3-or-5 3)

(%verify-version-3-or-5 5)

;; Following fails successfully:

(%verify-version-3-or-5 6)

:SEE-ALSO ‘%verify-digest-version’.

Package

unicly.

Source

unicly.lisp.

Function: digested-v3-uuid (v3-digest-byte-array)
Package

unicly.

Source

unicly.lisp.

Function: digested-v3or5-uuid (digest-byte-array digest-3-or-5)

Helper function to format UUIDv3 and UUIDv5 hashes according to UUID-VERSION.

DIGEST-BYTE-ARRAY is an argument suitable as the BYTE-ARRAY arg to ‘uuid-request-integer’.

DIGEST-BYTE-ARRAY is as per the the return value of ‘digested-v3or5-uuid’
UUID-VERSION should satisfy ‘%verify-version-3-or-5’, an error is signaled if not.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly.lisp.

Function: digested-v5-uuid (v5-digest-byte-array)
Package

unicly.

Source

unicly.lisp.

Function: doc-set (name object-type string args)
Package

unicly.

Source

unicly-utils.lisp.

Function: fundoc (name &optional string &rest args)
Package

unicly.

Source

unicly-utils.lisp.

Function: generic-doc (function-designator &optional doc-string &rest args)
Package

unicly.

Source

unicly-utils.lisp.

Function: hexadecimal-char-p (maybe-hex-char)
Package

unicly.

Source

unicly-utils.lisp.

Function: make-uuid-from-string-if (uuid-hex-string-36-if)

Helper function for ‘make-uuid-from-string’.

If UUID-HEX-STRING-36-IF satisfies ‘uuid-hex-string-36-p’ return it. If the constraint fails signal a ‘mon:simple-error-mon’ condition.

:EXAMPLE

(make-uuid-from-string-if "6ba7b810-9dad-11d1-80b4-00c04fd430c8")

(make-uuid-from-string-if "6ba7b810-9dad–11d1-80b4-00c04fd430c8")

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-string-uuid.lisp.

Function: method-doc (generic-function-designator qualifiers specializers &optional doc-string &rest args)
Package

unicly.

Source

unicly-utils.lisp.

Function: simple-string-compat-p (maybe-simple-string-compat)
Package

unicly.

Source

unicly-utils.lisp.

Function: string-all-hex-char-p (maybe-hex-string)
Package

unicly.

Source

unicly-utils.lisp.

Function: string-not-null-or-empty-p (str)
Package

unicly.

Source

unicly-utils.lisp.

Function: string-with-fill-pointer-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: string-with-fill-pointer-p (maybe-object-of-type)
Package

unicly.

Source

unicly-types.lisp.

Function: type-specifier-p (object)
Package

unicly.

Source

unicly-utils.lisp.

Function: typedoc (name &optional string &rest args)
Package

unicly.

Source

unicly-utils.lisp.

Function: uuid-assemble-ub16 (b1 b2)

Return an integer of type ‘uuid-ub48’ constructed of the uuid-ub8 octets B1 and B2.

HIGH —> LOW
B1 ... B6

:EXAMPLE

(let ((ub16 #xFFFF))
(multiple-value-bind (b1 b2) (uuid-disassemble-ub16 ub16)
(eql (uuid-assemble-ub16 b1 b2) ub16)))

:SEE-ALSO ‘uuid-assemble-ub48’, ‘uuid-assemble-ub32’,
‘uuid-disassemble-ub48’, ‘uuid-disassemble-ub32’, ‘uuid-disassemble-ub16’, ‘uuid-request-integer’, ‘uuid-byte-array-16-to-integer’.

Package

unicly.

Source

unicly-integers.lisp.

Function: uuid-assemble-ub32 (b1 b2 b3 b4)

Return an integer of type ‘uuid-ub32’ constructed of the uuid-ub8 octets B1, B2, B3, and B4.

HIGH —> LOW
B1 ... B4

:EXAMPLE

(let ((ub32 #xFFFFFFFF))
(multiple-value-bind (b1 b2 b3 b4) (uuid-disassemble-ub32 ub32)
(eql (uuid-assemble-ub32 b1 b2 b3 b4) ub32)))

:SEE-ALSO ‘uuid-assemble-ub48’, ‘uuid-assemble-ub16’,
‘uuid-disassemble-ub48’, ‘uuid-disassemble-ub32’, ‘uuid-disassemble-ub16’, ‘uuid-request-integer’, ‘uuid-byte-array-16-to-integer’.

Package

unicly.

Source

unicly-integers.lisp.

Function: uuid-assemble-ub48 (b1 b2 b3 b4 b5 b6)

Return an integer of type ‘uuid-ub48’ constructed of the uuid-ub8 octets B1, B2, B3, B4, B5, and B6.

HIGH —> LOW
B1 ... B6

:EXAMPLE

(let ((ub48 #xFFFFFFFFFFFF))
(multiple-value-bind (b1 b2 b3 b4 b5 b6) (uuid-disassemble-ub48 ub48)
(eql (uuid-assemble-ub48 b1 b2 b3 b4 b5 b6) ub48)))

:SEE-ALSO ‘uuid-assemble-ub32’, ‘uuid-assemble-ub16’,
‘uuid-disassemble-ub48’, ‘uuid-disassemble-ub32’, ‘uuid-disassemble-ub16’, ‘uuid-request-integer’, ‘uuid-byte-array-16-to-integer’.

Package

unicly.

Source

unicly-integers.lisp.

Function: uuid-bit-vector-128-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-bit-vector-128-zeroed ()

Return a bit vector of 128 elements with all elements zeroed.

:EXAMPLE

(uuid-bit-vector-128-zeroed)

(typep (uuid-bit-vector-128-zeroed) ’uuid-bit-vector-128)

:SEE-ALSO ‘uuid-bit-vector-128’, ‘uuid-deposit-octet-to-bit-vector’, ‘uuid-byte-array-to-bit-vector’, ‘make-null-uuid’.

Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-16-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-bit-vector-16-p (maybe-object-of-type)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-bit-vector-16-zeroed ()
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-32-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-bit-vector-32-p (maybe-object-of-type)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-bit-vector-32-zeroed ()
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-48-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-bit-vector-48-p (maybe-object-of-type)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-bit-vector-48-zeroed ()
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-8-zeroed ()
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-build-offsets (bit-offset bit-width)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-bit-vector-to-integer (bit-vector)

Return BIT-VECTOR’s representation as a positive integer.

BIT-VECTOR is an object of type ‘cl:simple-bit-vector’.

:EXAMPLE

(uuid-bit-vector-to-integer (uuid-to-bit-vector (make-v4-uuid)))

:NOTE This is a modified version of a a "BIT-VECTOR-TO-INTEGER" function written by Stas Boukarev using ‘cl:flet’ and ‘cl:loop’.
:SEE :FILE unicly/unicly.lisp for additional details.

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-byte-array-16-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-byte-array-20-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-byte-array-20-p (maybe-object-of-type)

Whether MAYBE-UUID-BYTE-ARRAY-16 is of type ‘uuid-byte-array-20’.

Return T when MAYBE-UUID-BYTE-ARRAY-16 has the type signature:

(simple-array (unsigned-byte 8) (20))

:EXAMPLE

(uuid-byte-array-20-p (uuid-string-to-sha1-byte-array "bubba"))

:SEE-ALSO ‘uuid-hex-string-36’, ‘uuid-hex-string-36-p’.

Package

unicly.

Source

unicly-types.lisp.

Function: uuid-byte-array-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-byte-array-p (maybe-object-of-type)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-byte-string-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-delimited-string-36-p (maybe-delim-string-36)

Whether MAYBE-DELIM-STRING-36 is potentially of type ‘uuid-hex-string-36’ or ‘uuid-hex-string-36-zeroed’

Return nil when MAYBE-DELIM-STRING-36 is not ‘uuid-string-36-p’.
Else, return as if by ‘cl:values’:
cl:nth-value-0 is T
cl:nth-value-1 is an object of type (simple-vector 5)
each elt of vector is a simple-string generated by splitting
MAYBE-DELIM-STRING-36 at occurences of #\-.
An object will satisfy ‘uuid-string-36-p’ when following constraints are met:

- Its type is ’(array character 36)
- When split to list of strings on the character delimter #\- the list is of length is 5
- The length of each string in the list matches the pattern 8-4-4-4-12
- each string in the list satisfies is a hexadecimal character or #\-

:EXAMPLE

(uuid-delimited-string-36-p (uuid-princ-to-string (make-v4-uuid)))

(uuid-delimited-string-36-p (uuid-princ-to-string (make-null-uuid)))

(uuid-delimited-string-36-p (make-string 36 :initial-element #\-))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-types.lisp.

Function: uuid-deposit-octet-to-bit-vector (octet offset uuid-bv)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-deserialize-bit-vector-bits (stream-in)
Package

unicly.

Source

unicly-io.lisp.

Function: uuid-deserialize-byte-array-bytes (stream-in)
Package

unicly.

Source

unicly-io.lisp.

Function: uuid-digest-uuid-instance (digest-version uuid-namespace-instance name)

This is step two of RFC4122 Section 4.3:
- Compute the digest hash of the name space ID concatenated with the name.

DIGEST-VERSION is an interger value either (3 or 5) indicateing the type of hash to digest where 3 indicates :MD5 for a v3 UUID and 5 indicates :SHA1 for a v5 UUID. It should satisfy ‘%verify-digest-version’, and error is signaled if
not.

Arg UUID-NAMESPACE-INSTANCE is an instance of class ‘unique-universal-identifier’ indicating the namespace of NAME.
NAME is a string of arbitrary length and should be encoded as UTF-8 (or subset of).

When DIGEST-VERSION is 3 return value is an object of type ‘uuid-byte-array-16’ suitable for use as the V3-DIGEST-BYTE-ARRAY argument to ‘digested-v3-uuid’. When DIGEST-VERSION is 5 return value is an object of type ‘uuid-byte-array-20’ suitable for use as the V5-DIGEST-BYTE-ARRAY argument to ‘digested-v5-uuid’. :EXAMPLE

(uuid-digest-uuid-instance 3 *uuid-namespace-dns* "bubba")

(uuid-digest-uuid-instance 5 *uuid-namespace-dns* "bubba")

(uuid-byte-array-16-p (uuid-digest-uuid-instance 3 *uuid-namespace-dns* "bubba"))

(uuid-byte-array-20-p (uuid-digest-uuid-instance 5 *uuid-namespace-dns* "bubba"))

:SEE-ALSO ‘%uuid-digest-uuid-instance-md5’, ‘%uuid-digest-uuid-instance-sha1’.

Package

unicly.

Source

unicly.lisp.

Function: uuid-disassemble-ub16 (u16)

Return two uuid-ub8 octets of U16 as if by ‘cl:values’.

U16 is an integer of type ‘uuid-ub16’ corresponding to either the ‘%uuid_time-high-and-version’ or ‘%uuid_time-mid’ slots of an instance of class ‘unique-universal-identifier’.

:EXAMPLE

(uuid-disassemble-ub16
(slot-value (make-v5-uuid *uuid-namespace-dns* "buuba") ’%uuid_time-mid))

(multiple-value-list (uuid-disassemble-ub16 13953))

(eq (nth-value 0 (uuid-disassemble-ub16 13953)) 54)

(eq (nth-value 0 (uuid-disassemble-ub16 13953)) 129)

:SEE-ALSO ‘uuid-disassemble-ub48’, ‘uuid-disassemble-ub32’, ‘uuid-disassemble-ub16’.

Package

unicly.

Source

unicly-integers.lisp.

Function: uuid-disassemble-ub32 (u32)

Return U32 as four integer values of type ‘uuid-ub8’ as if by ‘cl:values’.

U32 is an integer of type ‘uuid-ub32’ corresponding to the ‘%uuid_time-low’ slot of an instance of class ‘unique-universal-identifier’.

:EXAMPLE

(slot-value (make-v4-uuid) ’%UUID_TIME-LOW)

(uuid-disassemble-ub32 (slot-value (make-v5-uuid *uuid-namespace-dns* "bubba")))

(equal (multiple-value-list (uuid-disassemble-ub16 13953)) ’(54 129))

:SEE-ALSO ‘uuid-disassemble-ub48’, ‘uuid-disassemble-ub32’, ‘uuid-disassemble-ub16’.

Package

unicly.

Source

unicly-integers.lisp.

Function: uuid-disassemble-ub48 (u48)

Return U48 as six integer values of type uuid-ub8 as if by ‘cl:values’.

U48 is an integer of type ‘uuid-ub48’. corresponding to the ‘%uuid_node’ slot of an instance of class ‘unique-universal-identifier’.

:EXAMPLE

(multiple-value-list
(uuid-disassemble-ub48
(slot-value (make-v5-uuid *uuid-namespace-dns* "buuba") ’%uuid_node))) :SEE-ALSO ‘uuid-disassemble-ub48’, ‘uuid-disassemble-ub32’, ‘uuid-disassemble-ub16’.

Package

unicly.

Source

unicly-integers.lisp.

Function: uuid-hex-vector-parse-clock-seq-and-reserved (hex-vector-5)
Package

unicly.

Source

unicly-string-uuid.lisp.

Function: uuid-hex-vector-parse-clock-seq-low (hex-vector-5)
Package

unicly.

Source

unicly-string-uuid.lisp.

Function: uuid-hex-vector-parse-node (hex-vector-5)
Package

unicly.

Source

unicly-string-uuid.lisp.

Function: uuid-hex-vector-parse-time-high-and-version (hex-vector-5)
Package

unicly.

Source

unicly-string-uuid.lisp.

Function: uuid-hex-vector-parse-time-low (hex-vector-5)
Package

unicly.

Source

unicly-string-uuid.lisp.

Function: uuid-hex-vector-parse-time-mid (hex-vector-5)
Package

unicly.

Source

unicly-string-uuid.lisp.

Function: uuid-integer-128-to-bit-vector (uuid-integer-128)

Convert the decimal integer representation of a UUID to a ‘uuid-bit-vector-128’.

:EXAMPLE

(uuid-bit-vector-eql (uuid-integer-128-to-bit-vector 317192554773903544674993329975922389959)
(uuid-to-bit-vector (make-v5-uuid *uuid-namespace-dns* "bubba")))
(uuid-bit-vector-eql (uuid-integer-128-to-bit-vector 317192554773903544674993329975922389959)

(uuid-byte-array-to-bit-vector (uuid-integer-128-to-byte-array 317192554773903544674993329975922389959)))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-integer-128-to-byte-array (uuid-integer)
Package

unicly.

Source

unicly-byte-arrays.lisp.

Function: uuid-octet-to-bit-vector-8 (octet)
Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: uuid-read-bit-vector-bits (input-pathname &key if-does-not-exist)
Package

unicly.

Source

unicly-io.lisp.

Function: uuid-request-integer (array offset length &key little-endian sign-extend)

Decode an integer of LENGTH octets from ARRAY starting at OFFSET.

The number represented by BYTE-ARRAY may be any positive integer representable in 48 bits.

The OFFSET is effectively :start and
LENGTH is :end where :end => (+ offset length)
x86-32 OSs are LITTLE-ENDIAN but network-byte-order is big-endian...

:EXAMPLE

(uuid-request-integer (uuid-number-to-byte-array 281474976710654) 0 6)

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-integers.lisp.

Function: uuid-serialize-bit-vector-bits (bv-or-uuid stream-out)
Package

unicly.

Source

unicly-io.lisp.

Function: uuid-serialize-byte-array-bytes (uuid-or-byte-array-16 stream-out)

Serialize UUID to STREAM.

Bytes of UUID are written to STREAM.

Stream should have an :element-type ’(unsigned-byte 8).

:EXAMPLE

(let ((file (make-pathname :directory ’(:absolute "tmp")
:name "temp-bytes"))
(w-uuid (make-v5-uuid *uuid-namespace-dns* "bubba"))
(gthr ’()))
(with-open-file (s file
:if-exists :supersede
:if-does-not-exist :create
:direction :output
:element-type ’uuid-ub8)
(uuid-serialize-byte-array-bytes w-uuid s))
(with-open-file (stream file :element-type ’uuid-ub8)
(do ((code (read-byte stream nil :eof) (read-byte stream nil :eof)))
((eql code :eof))
(push code gthr)))
(and gthr
(setf gthr (uuid-from-byte-array (make-array 16
:element-type ’uuid-ub8 :initial-contents (nreverse gthr))))) (unwind-protect
(list (uuid-eql w-uuid gthr)
gthr
w-uuid)
(delete-file file)))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-io.lisp.

Function: uuid-simple-type-error (&key datum expected-type)

Convenience function for signaling conditions of type ‘unicly::uuid-simple-type-error’.

Keywords DATUM and EXPECTED-TYPE are as per condition class CL:TYPE-ERROR.

:EXAMPLE

(uuid-simple-type-error :datum "bubba" :expected-type ’simple-bit-vector)

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-conditions.lisp.

Function: uuid-simple-vector-5-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-simple-vector-5-p (maybe-object-of-type)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-string-32-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-string-36-check-type (checked-val)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-to-byte-array (uuid)

Convert UUID to a byte-array.

Arg UUID should be an instance of the UNIQUE-UNIVERSAL-IDENTIFIER class.

Return value is an array of type ‘uuid-byte-array-16’ with the type signature:

(simple-array (unsigned-byte 8) (16))

It will satisfy the predicate ‘uuid-byte-array-16-p’.

:EXAMPLE

(uuid-get-namespace-bytes *uuid-namespace-dns*)

:SEE-ALSO ‘uuid-from-byte-array’.

Package

unicly.

Alias for

uuid-get-namespace-bytes.

Function: uuid-valid-stream-p (maybe-stream)

Whether STREAM is ‘cl:streamp’ and ‘cl:open-stream-p’. Return as if by ‘cl:values’:

cl:nth-value 0 is a boolean
cl:nth-value 1 is value of STREAM arg

:EXAMPLE

(let ((os (make-string-output-stream))) (unwind-protect
(uuid-valid-stream-p os)
(close os)))

(uuid-valid-stream-p "bubba")

:SEE-ALSO ‘uuid-valid-stream-verify-io-type’, ‘uuid-valid-stream-verify-for-input’, ‘uuid-valid-stream-verify-for-output’.

Package

unicly.

Source

unicly-io.lisp.

Function: uuid-valid-stream-verify-for-input (in-stream)

Return STREAM if it is valid for use as when reading a UUID representation.

Signal an error if STREAM is not true for either ‘uuid-valid-stream-p’ or ‘cl:input-stream-p’.

:EXAMPLE

(let ((stream-in (make-string-input-stream "bubba is ok"))
(stream-read (make-array 11 :element-type ’character)))
(values (uuid-valid-stream-verify-for-input stream-in)
(progn (read-sequence stream-read stream-in )
stream-read)))

;; Following fails succesfully:

(uuid-valid-stream-verify-for-input "bubba")

:SEE-ALSO ‘uuid-valid-stream-verify-io-type’,
‘uuid-valid-stream-verify-for-output’.

Package

unicly.

Source

unicly-io.lisp.

Function: uuid-valid-stream-verify-for-output (out-stream)

Return STREAM if it is valid for use as when writing a UUID representation.

Signal an error if STREAM is not true for either ‘uuid-valid-stream-p’ or ‘cl:outpu-stream-p’.

:EXAMPLE

(with-output-to-string (bubba)
(and (uuid-valid-stream-verify-for-output bubba)
(princ "bubba is ok" bubba)))

;; Following fails succesfully:

(uuid-valid-stream-verify-for-output "bubba")

:SEE-ALSO ‘uuid-valid-stream-verify-io-type’, ‘uuid-valid-stream-verify-for-input’.

Package

unicly.

Source

unicly-io.lisp.

Function: uuid-valid-stream-verify-io-octet-type (maybe-octet-stream &key direction)
Package

unicly.

Source

unicly-io.lisp.

Function: uuid-valid-stream-verify-io-type (maybe-valid-io-stream &key direction)

Return STREAM if it is valid for use as when writing a UUID representation.

Keyword DIRECTION is as per ‘cl:open’. Valid values are either:

:INPUT :OUTPUT

An error is signaled if STREAM is not ‘uuid-valid-stream-p’.

When DIRECTION is :OUTPUT and stream is not ‘cl:output-stream-p’ an error is signaled.

When DIRECTION is :INPUT and stream is not ‘cl:input-stream-p’ an error is signaled.

:SEE-ALSO ‘uuid-valid-stream-verify-io-type’, ‘uuid-valid-stream-verify-for-input’,
‘uuid-valid-stream-verify-for-output’.

Package

unicly.

Source

unicly-io.lisp.

Function: uuid-valid-stream-verify-octet-stream-for-input (maybe-input-octet-stream)
Package

unicly.

Source

unicly-io.lisp.

Function: uuid-valid-stream-verify-octet-stream-for-output (maybe-output-octet-stream)
Package

unicly.

Source

unicly-io.lisp.

Function: uuid-verify-bit-vector-simplicity (putative-simple-bit-vector)
Package

unicly.

Source

unicly-types.lisp.

Function: uuid-version-bit-vector (uuid-bit-vector)

Return the version of uuid version of UUID-BIT-VECTOR.

UUID-BIT-VECTOR is on object of type ‘uuid-bit-vector-128’.

When object is the null uuid return as if by ‘cl:values’:
0,null-uuid

If for some reason bit 48 of object is not ‘cl:zerop’ an error is signaled.

:EXAMPLE

(uuid-version-bit-vector (uuid-to-bit-vector (make-v4-uuid)))

(uuid-version-bit-vector (uuid-to-bit-vector
(make-v5-uuid *uuid-namespace-dns* "bubba")))

(uuid-version-bit-vector (uuid-to-bit-vector
(make-v3-uuid *uuid-namespace-dns* "bubba")))

(uuid-version-bit-vector (uuid-to-bit-vector (make-null-uuid)))

;; Following successfully signals an error:

(let ((bv-z (uuid-bit-vector-128-zeroed)))
(setf (sbit bv-z 48) 1)
(uuid-version-bit-vector bv-z))

:SEE-ALSO ‘uuid-version-bit-vector’, ‘uuid-bit-vector-v3-p’, ‘uuid-bit-vector-v4-p’ ‘uuid-bit-vector-v5-p’, ‘uuid-bit-vector-128’, ‘uuid-eql’.

Package

unicly.

Source

unicly-bit-vectors.lisp.

Function: vardoc (name &optional string &rest args)
Package

unicly.

Source

unicly-utils.lisp.

Function: vector-with-fill-pointer-p (object)
Package

unicly.

Source

unicly-utils.lisp.

Function: verify-sane-namespace-and-name (namespace name)

Return as if by cl:values the uuid-byte-array representations of NAMESPACE and NAME.

NAMESPACE is an object of type ‘unicly:unique-universal-identifier’.

NAME is a string.

Depending on value of special variables:

‘*uuid-allow-null-like-namespace-args*’ ‘*uuid-allow-empty-string-name-args*’

Signal an error if NAMESPACE is a null-uuid not satisfying ‘unique-universal-identifier-null-p’. Siganl an error if NAME fails to satisfy ‘unicly::%string-not-empty-p’.
:EXAMPLE

(verify-sane-namespace-and-name (make-v4-uuid) "bubba")

(let ((*uuid-allow-empty-string-name-args* t))
(verify-sane-namespace-and-name (make-v4-uuid) ""))

(null (ignore-errors (verify-sane-namespace-and-name (make-v4-uuid) "")))

(let ((*uuid-allow-null-like-namespace-args* t))
(verify-sane-namespace-and-name (make-instance ’unique-universal-identifier) "bubba"))

(let ((*uuid-allow-null-like-namespace-args* t)
(*uuid-allow-empty-string-name-args* t))
(verify-sane-namespace-and-name (make-instance ’unique-universal-identifier) ""))

:SEE-ALSO ‘unicly::%verify-non-empty-name-arg’, ‘unicly::%verify-non-null-namespace-arg’.

Package

unicly.

Source

unicly-null-check.lisp.


5.2.6 Generic functions

Generic Reader: uuid-bit-48-error-datum (condition)
Package

unicly.

Methods
Reader Method: uuid-bit-48-error-datum ((condition uuid-bit-48-error))
Source

unicly-conditions.lisp.

Target Slot

uuid-bit-48-error-datum.

Generic Reader: uuid-bit-48-error-expected-type (condition)
Package

unicly.

Methods
Reader Method: uuid-bit-48-error-expected-type ((condition uuid-bit-48-error))
Source

unicly-conditions.lisp.

Target Slot

uuid-bit-48-error-expected-type.

Generic Function: uuid-print-bytes (stream uuid)

Print the bytes of UUID in a format suitable to its class to STREAM.

UUID an object representing an instance of ‘unique-universal-identifier’ class or subclass.

STREAM is an output-stream.

:SEE-ALSO ‘uuid-print-bytes-to-string’.

Package

unicly.

Source

unicly-class.lisp.

Methods
Method: uuid-print-bytes (stream (uuid unique-universal-identifier))

Print the raw bytes of UUID in hexadecimal format to STREAM.

UUID is an instance of ‘unique-universal-identifier’ class.

STREAM is an output-stream.

Output of return value has the format:

6ba7b8109dad11d180b400c04fd430c8

:EXAMPLE

(uuid-print-bytes nil (make-v4-uuid))

(uuid-print-bytes t (make-v4-uuid))

:NOTE Per RFC4122 Section 3. "Namespace Registration Template" ,—-
| The hexadecimal values "a" through "f" are output as
| lower case characters and are case insensitive on input. ‘—-

:SEE-ALSO ‘uuid-print-bytes-to-string’.

Generic Reader: uuid-slot-unbound-name (condition)
Package

unicly.

Methods
Reader Method: uuid-slot-unbound-name ((condition uuid-slot-unbound-error))
Source

unicly-conditions.lisp.

Target Slot

uuid-slot-unbound-name.

Generic Reader: uuid-slot-unbound-object (condition)
Package

unicly.

Methods
Reader Method: uuid-slot-unbound-object ((condition uuid-slot-unbound-error))
Source

unicly-conditions.lisp.

Target Slot

uuid-slot-unbound-object.


5.2.7 Conditions

Condition: uuid-bit-48-error

Condition for uuid related objects whose bit 48 is not ‘cl:zerop’.

UUID-BIT-48-ERROR-DATUM is the object of the offending error.

- When it is of type ‘unicly:unique-universal-identifier’ this indicates that
Msb0 (byte 1 15) of the ’%uuid_time-high-and-version slot-value is 1.

- When it is of type ‘unicly:uuid-bit-vector-128’ this indicates that
(sbit UUID-BIT-48-ERROR-DATUM 48) is 1.

UUID-BIT-48-ERROR-EXPECTED-TYPE is a type specifier, it is defaulted to (mod 1).

:EXAMPLE

(error (make-condition ’uuid-bit-48-error :uuid-bit-48-error-datum (make-v4-uuid)))

(error (make-condition ’uuid-bit-48-error :uuid-bit-48-error-datum (uuid-bit-vector-128-zeroed)))

(error (make-condition ’uuid-bit-48-error :uuid-bit-48-error-datum (make-null-uuid)))

:NOTE Above examples are for illustrative purposes only, the reported objects
are in fact valid. Following examples are for legitimately invalid objects.

(let ((v4uuid (make-v4-uuid)))
(setf (slot-value v4uuid ’%uuid_time-high-and-version) #xFFFF)
(%uuid-version-uuid-if (slot-value v4uuid ’%uuid_time-high-and-version) v4uuid))

(let* ((v4uuid (make-v4-uuid))
(v4-bv (uuid-to-bit-vector v4uuid)))
(setf (sbit v4-bv 48) 1)
(%uuid-version-bit-vector-if v4-bv))

:NOTE Intended callers of this condition are internal unicly dispatching functions:
- ‘unicly::%uuid-version-uuid-if’
- ‘unicly::%uuid-version-bit-vector-if’

Under normal circumstances, neither of these functions likely to ever siganl
so long as their arguments are uuid objects properly instantiated via the exposed
unicly API, e.g. with ‘unicly:make-v[345]-uuid’. However, it is possible for an
abstract representation of a uuid to be corrupt such that uuid objects
instantiated from them by way of:
- ‘unicly:make-uuid-from-string’
- ‘unicly:uuid-from-byte-array’
- ‘unicly:uuid-from-bit-vector’

Where the resultant uuid could be faulty w/r/t its uuid version we should identify it.

Of more concern are attempts to migrate uuid objects with origins from
the equivalent UUID API esp. where it may create spurious uuid objects by way of ‘uuid:make-v1-uuid’ which sets the wrong bits of the class uuid’s
time-high-and-version slot-value. It is wrong to propogate the errors of that implementations API further and we make some attempt to identify them.

:SEE-ALSO ‘uuid-version-uuid’, ‘uuid-version-bit-vector’.

Package

unicly.

Source

unicly-conditions.lisp.

Direct superclasses

uuid-error.

Direct methods
Direct slots
Slot: uuid-bit-48-error-datum
Initargs

:uuid-bit-48-error-datum

Readers

uuid-bit-48-error-datum.

Writers

This slot is read-only.

Slot: uuid-bit-48-error-expected-type
Initform

(quote (quote (mod 1)))

Readers

uuid-bit-48-error-expected-type.

Writers

This slot is read-only.

Condition: uuid-error

Superclass for all errors related to unicly.

Package

unicly.

Source

unicly-conditions.lisp.

Direct superclasses

error.

Direct subclasses
Condition: uuid-simple-error

Conditions for simple unicly errors.

Package

unicly.

Source

unicly-conditions.lisp.

Direct superclasses
Direct subclasses

uuid-simple-type-error.

Direct Default Initargs
InitargValue
:format-argumentsnil
:format-controluuid-simple-error
Condition: uuid-simple-type-error

Conditions for failed Unicly type declarations.

Keyword FORMAT-CONTROL has a default-initarg which displays as:

UUID-SIMPLE-TYPE-ERROR
got-val: <GOT>
type-of: <DATUM-TYPE-OF>
expected: <EXPECTED-TYPE>

Do not override FORMAT-CONTROL by providing an alternative argument as keyword FORMAT-ARGUMENTS is ignored.

Keywords DATUM and EXPECTED-TYPE are as per condition class CL:TYPE-ERROR.

Convenience function ‘uuid-simple-type-error’ is provided for signalling this condition.

:EXAMPLE

(error ’uuid-simple-type-error :datum "bubba" :expected-type ’simple-bit-vector)

(uuid-simple-type-error :datum "bubba" :expected-type ’simple-bit-vector)

Package

unicly.

Source

unicly-conditions.lisp.

Direct superclasses
Direct Default Initargs
InitargValue
:format-controluuid-simple-type-error~%~tgot-val: ~s~%~ttype-of: ~s~%~texpected: ~s~t
Condition: uuid-slot-type-error

Conditions for unicly slot-type errors.

Package

unicly.

Source

unicly-conditions.lisp.

Direct superclasses
Condition: uuid-slot-unbound-error

Condition for ‘unicly:unique-universal-identifier’ objects with unbound slots.

UUID-SLOT-UNBOUND-NAME is a symbol naming the unbound slot in object.

UUID-SLOT-UNBOUND-OBJECT is the uuid instance of with the unbound slot.

:EXAMPLE

(let ((v4uuid (make-v4-uuid)))
(slot-makunbound v4uuid ’%uuid_time-high-and-version)
(error ’uuid-slot-unbound-error
:uuid-slot-unbound-name ’%uuid_time-high-and-version :uuid-slot-unbound-object v4uuid))

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-conditions.lisp.

Direct superclasses

uuid-error.

Direct methods
Direct slots
Slot: uuid-slot-unbound-name
Initargs

:uuid-slot-unbound-name

Readers

uuid-slot-unbound-name.

Writers

This slot is read-only.

Slot: uuid-slot-unbound-object
Initargs

:uuid-slot-unbound-object

Readers

uuid-slot-unbound-object.

Writers

This slot is read-only.


5.2.8 Classes

Class: unique-universal-identifier-null

Like instances of ‘unicly:unique-universal-identifier’ but with all slots zeroed.

There should only ever be one instance of this class and it should be the value
of the special variable ‘unicly::*uuid-null-uuid*’.

User code should neither set nor access the slot-values of this class, instead
user code may gain access to a valid null-uuid with ‘make-null-uuid’.

Though the consequences are undefined, it is an error for any slot-value of an instance of this class to be non-zero.

,—- RFC4122 section 4.1.7. "Nil UUID"
| The nil UUID is special form of UUID that is specified to have all
| 128 bits set to zero.
‘—-

Following returns true when object is of type ‘unicly:unique-universal-identifier-null’.

(slot-exists-p *uuid-null-uuid* ’%uuid_null)

Instance of this class return T for both ‘unicly:uuid-eql’ and ‘unicly:uuid-bit-vector-eql’ however not two null-uuids share identity under ‘cl:eq’, ‘cl:eql’, ‘cl:equal’, ‘cl:equalp’:

(eq (make-instance ’unique-universal-identifier-null)
(make-instance ’unique-universal-identifier))

(eql (make-instance ’unique-universal-identifier)
(make-instance ’unique-universal-identifier))

(equal (make-instance ’unique-universal-identifier)
(make-instance ’unique-universal-identifier))

(equalp (make-instance ’unique-universal-identifier)
(make-instance ’unique-universal-identifier))

:SEE-ALSO ‘make-null-uuid’.

Package

unicly.

Source

unicly-class.lisp.

Direct superclasses

unique-universal-identifier.

Direct methods
Direct slots
Slot: %uuid_null
Initform

t


5.2.9 Types

Type: char-compat ()
Package

unicly.

Source

unicly-bridge.lisp.

Type: hexadecimal-char ()
Package

unicly.

Source

unicly-utils.lisp.

Type: not-null ()
Package

unicly.

Source

unicly-utils.lisp.

Type: simple-string-compat ()
Package

unicly.

Source

unicly-bridge.lisp.

Type: simple-string-n-length-compat (size)
Package

unicly.

Source

unicly-bridge.lisp.

Type: stream-or-boolean ()
Package

unicly.

Source

unicly-utils.lisp.

Type: stream-or-boolean-or-string-with-fill-pointer ()
Package

unicly.

Source

unicly-utils.lisp.

Type: string-compat ()
Package

unicly.

Source

unicly-bridge.lisp.

Type: string-empty ()
Package

unicly.

Source

unicly-utils.lisp.

Type: string-n-length-compat (size)
Package

unicly.

Source

unicly-bridge.lisp.

Type: string-not-empty ()
Package

unicly.

Source

unicly-utils.lisp.

Type: string-not-null-or-empty ()
Package

unicly.

Source

unicly-utils.lisp.

Type: string-or-null ()
Package

unicly.

Source

unicly-utils.lisp.

Type: string-with-fill-pointer ()
Package

unicly.

Source

unicly-utils.lisp.

Type: uuid-bit-vector (&optional size)

An object of type (simple-bit-vector <LENGTH>).
Objects of this type are capable of representing as bit-vectors the integer values of slots of class ‘unique-universal-identifier’.

:EXAMPLE

(typep (uuid-bit-vector-128-zeroed) ’uuid-bit-vector)

:SEE-ALSO ‘uuid-bit-vector’, ‘uuid-bit-vector-128’, ‘uuid-bit-vector-48’, ‘uuid-bit-vector-32’, ‘uuid-bit-vector-16’, ‘uuid-bit-vector-8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-128 ()

An object of type (simple-bit-vector 128) capable of representing all 128 bits of a ‘unique-universal-identifier’

Objects of this type have a length of type ‘uuid-bit-vector-128-length’ and may be used to represent the integer value of the combined slots of class ‘unique-universal-identifier’.

:EXAMPLE

(typep (uuid-bit-vector-128-zeroed) ’uuid-bit-vector-128)

:SEE-ALSO ‘uuid-bit-vector’, ‘uuid-bit-vector-128’, ‘uuid-bit-vector-48’, ‘uuid-bit-vector-32’, ‘uuid-bit-vector-16’, ‘uuid-bit-vector-8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-128-length ()

An object of type (uuid-bit-vector-length 128).

Objects of this type correspond with the length of a simple-bit-vector of type ‘uuid-bit-vector-128’ which are used to represent the integer value of the combined slots of class ‘unique-universal-identifier’.

:EXAMPLE

(typep 128 ’(uuid-bit-vector-128-length)) => T

(typep 127 ’(uuid-bit-vector-127-length)) => NIL

:SEE-ALSO ‘uuid-bit-vector-length’, ‘uuid-bit-vector-128-length’, ‘uuid-bit-vector-48-length’, ‘uuid-bit-vector-32-length’, ‘uuid-bit-vector-16-length’, ‘uuid-bit-vector-8-length’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-16 ()

An object of type (simple-bit-vector 16) capable of representing 16
bits of a ‘unique-universal-identifier’

Objects of this type have a length of type ‘uuid-bit-vector-16-length’, and may be used to represent the integer values of the slots ‘%uuid_time-mid’ and ‘%uuid_time-mid’ of class ‘unique-universal-identifier’.

:EXAMPLE

(typep (subseq (uuid-bit-vector-128-zeroed) 0 16) ’uuid-bit-vector-16)

(typep (uuid-bit-vector-128-zeroed) ’uuid-bit-vector-128)

:SEE-ALSO ‘uuid-bit-vector’, ‘uuid-bit-vector-128’, ‘uuid-bit-vector-48’, ‘uuid-bit-vector-32’, ‘uuid-bit-vector-16’, ‘uuid-bit-vector-8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-16-length ()

An object of type (uuid-bit-vector-length 16).

Objects of this type correspond with the length of a simple-bit-vector of type ‘uuid-bit-vector-16’ which are used to represent the integer values of the slots ‘%uuid_time-mid’ and ‘%uuid_time-high-and-version’ of class ‘unique-universal-identifier’.

:EXAMPLE

(typep 16 ’(uuid-bit-vector-16-length)) => T

(typep 17 ’(uuid-bit-vector-16-length)) => NIL

:SEE-ALSO ‘uuid-bit-vector-length’, ‘uuid-bit-vector-128-length’, ‘uuid-bit-vector-48-length’, ‘uuid-bit-vector-32-length’, ‘uuid-bit-vector-16-length’, ‘uuid-bit-vector-8-length’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-32 ()

An object of type (simple-bit-vector 32) capable of representing 32
bits of a ‘unique-universal-identifier’

Objects of this type have a length of type ‘uuid-bit-vector-32-length’, and may be used to represent the integer values of the slot ‘%uuid_time-low’ of class ‘unique-universal-identifier’.

:EXAMPLE

(typep (subseq (uuid-bit-vector-128-zeroed) 0 32) ’uuid-bit-vector-32)

(typep (uuid-bit-vector-128-zeroed) ’uuid-bit-vector-32)

:SEE-ALSO ‘uuid-bit-vector’, ‘uuid-bit-vector-128’, ‘uuid-bit-vector-48’, ‘uuid-bit-vector-32’, ‘uuid-bit-vector-16’, ‘uuid-bit-vector-8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-32-length ()

An object of type (uuid-bit-vector-length 32).

Objects of this type correspond with the length of a simple-bit-vector of type ‘uuid-bit-vector-32’ which are used to represent the integer values of the slot ‘%uuid_time-low’ of class ‘unique-universal-identifier’.

:EXAMPLE

(typep 32 ’(uuid-bit-vector-32-length)) => T

(typep 31 ’(uuid-bit-vector-31-length)) => NIL

:SEE-ALSO ‘uuid-bit-vector-length’, ‘uuid-bit-vector-128-length’, ‘uuid-bit-vector-48-length’, ‘uuid-bit-vector-32-length’, ‘uuid-bit-vector-16-length’, ‘uuid-bit-vector-8-length’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-48 ()

An object of type (simple-bit-vector 48) capable of representing 48
bits of a ‘unique-universal-identifier’

Objects of this type have a length of type ‘uuid-bit-vector-48-length’, and may be used to represent the integer values of the slot ‘%uuid_node’ of class ‘unique-universal-identifier’.

:EXAMPLE

(typep (subseq (uuid-bit-vector-128-zeroed) 0 48) ’uuid-bit-vector-48)

(typep (uuid-bit-vector-128-zeroed) ’uuid-bit-vector-128)

:SEE-ALSO ‘uuid-bit-vector’, ‘uuid-bit-vector-128’, ‘uuid-bit-vector-48’, ‘uuid-bit-vector-32’, ‘uuid-bit-vector-16’, ‘uuid-bit-vector-8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-48-length ()

An object of type (uuid-bit-vector-length 48).

Objects of this type correspond with the length of a simple-bit-vector of type ‘uuid-bit-vector-48’ which are used to represent the integer values of the slot ‘%uuid_node’ of class ‘unique-universal-identifier’.

:EXAMPLE

(typep 48 ’(uuid-bit-vector-48-length)) => T

(typep 47 ’(uuid-bit-vector-48-length)) => NIL

:SEE-ALSO ‘uuid-bit-vector-length’, ‘uuid-bit-vector-128-length’, ‘uuid-bit-vector-48-length’, ‘uuid-bit-vector-32-length’, ‘uuid-bit-vector-16-length’, ‘uuid-bit-vector-8-length’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-8 ()

An object of type (simple-bit-vector 128) capable of representing 8
bits of a ‘unique-universal-identifier’

Objects of this type have a length of type ‘uuid-bit-vector-8-length’, and may be used to represent an ‘uuid-ub8’ value of any sub-sequence of bits in a ‘uuid-bit-vector-128’ and specifically those integer values of the slots ‘%uuid_clock-seq-and-reserved’ and ‘%uuid_clock-seq-low’ of class ‘unique-universal-identifier’.

:EXAMPLE

(typep (subseq (uuid-bit-vector-128-zeroed) 0 8) ’uuid-bit-vector-8)

(typep (uuid-bit-vector-128-zeroed) ’uuid-bit-vector-128)

:SEE-ALSO ‘uuid-bit-vector’, ‘uuid-bit-vector-128’, ‘uuid-bit-vector-48’, ‘uuid-bit-vector-32’, ‘uuid-bit-vector-16’, ‘uuid-bit-vector-8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-8-length ()

An object of type (uuid-bit-vector-length 8).

Objects of this type correspond with the length of a simple-bit-vector of type ‘uuid-bit-vector-8’ which are used to represent the integer values of the slots ‘%uuid_clock-seq-low’ and ‘%uuid_clock-seq-and-reserved’ of class ‘unique-universal-identifier’.

:EXAMPLE

(typep 8 ’(uuid-bit-vector-8-length)) => T

(typep 8 ’(uuid-bit-vector-8-length)) => NIL

:SEE-ALSO ‘uuid-bit-vector-length’, ‘uuid-bit-vector-128-length’, ‘uuid-bit-vector-48-length’, ‘uuid-bit-vector-32-length’, ‘uuid-bit-vector-16-length’, ‘uuid-bit-vector-8-length’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-index (index-range)
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-length (size)
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-null ()

An object of type ‘unicly:uuid-bit-vector-128’ and satisfying ‘unicly:uuid-bit-vector-eql’.

:EXAMPLE

(typep (uuid-bit-vector-128-zeroed) ’uuid-bit-vector-null)

(typep (make-array 128 :element-type ’bit :initial-element 1) ’uuid-bit-vector-null)

(not (typep (uuid-byte-array-16-zeroed) ’uuid-bit-vector-null))

:SEE-ALSO ‘uuid-bit-vector-128’, ‘uuid-bit-vector-128-zeroed’, ‘uuid-byte-array-16-zeroed’, ‘uuid-byte-array-null’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-valid-bit-offset ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-valid-bit-width ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-bit-vector-valid-length ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-byte-array (&optional size)
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-byte-array-16 ()

An object which has the type signature: (simple-array (unsigned-byte 8) (16))

:EXAMPLE

(typep (uuid-to-byte-array *uuid-namespace-dns*) ’uuid-byte-array-16)

:SEE-ALSO ‘uuid-hex-string-36’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-byte-array-20 ()

An object which has the type signature: (simple-array (unsigned-byte 8) (20))

:EXAMPLE

(typep (uuid-string-to-sha1-byte-array "bubba") ’uuid-byte-array-20)

:SEE-ALSO ‘uuid-hex-string-36’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-byte-array-null ()

An object of type ‘unicly:uuid-byte-array-16’ with each element ‘cl:zerop’.

:EXAMPLE

(typep (uuid-byte-array-16-zeroed) ’uuid-byte-array-null)

(typep (make-array 16 :element-type ’uuid-ub8 :initial-element 0) ’uuid-byte-array-null)

(not (typep (make-array 16 :element-type ’uuid-ub8 :initial-element 1) ’uuid-byte-array-null))

(not (typep (uuid-bit-vector-128-zeroed) ’uuid-byte-array-null))

:SEE-ALSO ‘uuid-byte-array-16-zeroed’, ‘uuid-byte-array-16-p’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-byte-string ()

An object of with type signature: (simple-array character (16))

:EXAMPLE

(typep (uuid-get-bytes (uuid-print-bytes nil *uuid-namespace-dns*)) ’uuid-byte-string)

:SEE-ALSO ‘uuid-byte-array-16’, ‘uuid-hex-string-36’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-hex-string-12 ()

An object of type ‘uuid-hex-string-length’ with length 12.

:EXAMPLE

(typep (svref #("e3115c49" "6e13" "4d21" "9a37" "a1af250a8f88") 4) ’uuid-hex-string-12)

:SEE-ALSO ‘uuid-hex-string-length’, ‘uuid-hex-string-12’, ‘uuid-hex-string-8’, ‘uuid-hex-string-4’, ‘uuid-hex-string-2’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-hex-string-2 ()

An object of type ‘uuid-hex-string-length’ with length

:EXAMPLE

(typep (subseq (svref #("e3115c49" "6e13" "4d21" "9a37" "a1af250a8f88") 3) 0 2) ’uuid-hex-string-2)

:SEE-ALSO ‘uuid-hex-string-length’, ‘uuid-hex-string-12’, ‘uuid-hex-string-8’, ‘uuid-hex-string-4’, ‘uuid-hex-string-2’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-hex-string-32 ()

An object with the type signature:

(array character (32))

And satisfies ‘mon:string-all-hex-char-p’.

:EXAMPLE

(typep (uuid-print-bytes nil *uuid-namespace-dns*) ’uuid-hex-string-32)

;; Following fails successfully:

(typep (print-object *uuid-namespace-dns* nil) ’uuid-hex-string-32)

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-hex-string-36 ()

An object of type (array character (36)) satsfying ‘uuid-hex-string-36-p’.

:EXAMPLE

(type

(typep "6ba7b810-9dad-11d1-80b4-00c04fd430c8" ’uuid-hex-string-36)

(typep "6BA7B810-9DAD-11D1-80B4-00C04FD430C8" ’uuid-hex-string-36-p)

;; Following fails successfully:

(typep "6BA7B810–9DAD-11D1-80B4-00C04FD430C8 ’uuid-hex-string-36-p)

:SEE-ALSO ‘<XREF>’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-hex-string-4 ()

An object of type ‘uuid-hex-string-length’ with length 4.

:EXAMPLE

(typep (svref #("e3115c49" "6e13" "4d21" "9a37" "a1af250a8f88") 1) ’uuid-hex-string-4)

:SEE-ALSO ‘uuid-hex-string-length’, ‘uuid-hex-string-12’, ‘uuid-hex-string-8’, ‘uuid-hex-string-4’, ‘uuid-hex-string-2’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-hex-string-8 ()

An object of type ‘uuid-hex-string-length’ with length 8.

:EXAMPLE

(typep (svref #("e3115c49" "6e13" "4d21" "9a37" "a1af250a8f88") 0) ’uuid-hex-string-8)

:SEE-ALSO ‘uuid-hex-string-length’, ‘uuid-hex-string-12’, ‘uuid-hex-string-8’, ‘uuid-hex-string-4’, ‘uuid-hex-string-2’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-hex-string-length (string-length)
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-simple-string-vector-5 ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-simple-vector-5 ()

Objects of this type are passed as the cl:nth-value 1 by funcitions which frob objects of type ‘uuid-hex-string-36’.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-delimited-string-36-p’, ‘uuid-hex-string-36-p’, ‘%uuid-hex-string-36-null-string-p’,
‘make-uuid-from-string-if’, ‘make-uuid-from-string’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-string-32 ()

An object with the type signature: (array character (36))

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-byte-string’, ‘uuid-byte-array-16’, ‘uuid-string-32’, ‘uuid-string-36’, ‘uuid-hex-string-32’, ‘uuid-hex-string-36’, ‘uuid-hex-string-32-p’, ‘uuid-hex-string-36-p’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-string-36 ()

An object with the type signature: (array character (32)) :EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-byte-string’, ‘uuid-byte-array-16’, ‘uuid-string-32’, ‘uuid-string-36’, ‘uuid-hex-string-32’, ‘uuid-hex-string-36’, ‘uuid-hex-string-32-p’, ‘uuid-hex-string-36-p’,.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub128 ()

An object of type: (unsigned-byte 128)

Octets: 16
Bits: 128
Hex value: #xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Decimal value: 340282366920938463463374607431768211455
Octal value: #o3777777777777777777777777777777777777777777

An object of this type is capable of representing the combined the integer value of the slots of class ‘unique-universal-identifier’.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO
‘uuid-unsigned-byte-size’, ‘uuid-ub128’, ‘uuid-ub64’, ‘uuid-ub48’, ‘uuid-ub32’, ‘uuid-ub16’, ‘uuid-ub8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub128-integer-length ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub16 ()

An object of type: (unsigned-byte 16)

Octets: 2
Bits: 16
Hex value: #xFFFF
Decimal value: 65535
Octal value: #o177777
Binary value: #b1111111111111111

Capable of representing the integer value of slots ‘%uuid_time-mid’ and ‘%uuid_time-high-and-version’ of class ‘unique-universal-identifier’.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-unsigned-byte-size’, ‘uuid-ub128’, ‘uuid-ub64’, ‘uuid-ub48’, ‘uuid-ub32’, ‘uuid-ub16’, ‘uuid-ub8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub24 ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub25-integer-length ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub32 ()

An object of type: (unsigned-byte 32)

Octets: 4
Bits: 32
Hex value: #xFFFFFFFF
Decimal value: 4294967295
Octal value: #o37777777777
Binary value: #b11111111111111111111111111111111

Capable of representing the integer value of slot ‘%uuid_time-low’ of class ‘unique-universal-identifier’.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-unsigned-byte-size’, ‘uuid-ub128’, ‘uuid-ub64’, ‘uuid-ub48’, ‘uuid-ub32’, ‘uuid-ub16’, ‘uuid-ub8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub33-integer-length ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub48 ()

An object of type: (unsigned-byte 48)

Octets: 6
Bits: 48
Hex value: #xFFFFFFFFFFFF
Decimal value: 281474976710655
Octal value: #o7777777777777777
:Binary value: #b111111111111111111111111111111111111111111111111

Capable of representing the integer value of slot ‘%uuid_node’ of class ‘unique-universal-identifier’.

An object of this type is capable of representing any integer value
of a slot of class ‘unique-universal-identifier’.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-unsigned-byte-size’, ‘uuid-ub128’, ‘uuid-ub64’, ‘uuid-ub48’, ‘uuid-ub32’, ‘uuid-ub16’, ‘uuid-ub8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub49-integer-length ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub64 ()

An object of type: (unsigned-byte 64)

An object of this type is capable of representing any integer value
of a slot of class ‘unique-universal-identifier’.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-unsigned-byte-size’, ‘uuid-ub128’, ‘uuid-ub64’, ‘uuid-ub48’, ‘uuid-ub32’, ‘uuid-ub16’, ‘uuid-ub8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub64-integer-length ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub8 ()

An object of type: (unsigned-byte 8)

Octets: 1
Bits: 8
Hex value: #xFF
Decimal value: 255
Octal value: #o377
Binary value: #b11111111

Capable of representing integer of any any element in an object of type ‘uuid-byte-array’ and the and the integer value of slots ‘%uuid_clock-seq-and-reserved’ ‘%uuid_clock-seq-low’ of class ‘unique-universal-identifier’.

:EXAMPLE

{ ... <EXAMPLE> ... }

:SEE-ALSO ‘uuid-unsigned-byte-size’, ‘uuid-ub128’, ‘uuid-ub64’, ‘uuid-ub48’, ‘uuid-ub32’, ‘uuid-ub16’, ‘uuid-ub8’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-ub9-integer-length ()
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-unsigned-byte-integer-length (integer)
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-unsigned-byte-size (byte-size)
Package

unicly.

Source

unicly-types.lisp.

Type: uuid-v3-4-or-5-int ()

An integer value in the range [3,5].

Range represents the possible return values for ‘unicly:uuid-version-uuid’ when
an object is a UUID as per return value of:

‘make-v3-uuid’ ‘make-v4-uuid’ ‘make-v5-uuid’

:EXAMPLE

(equal (subseq (mapcar #’(lambda (x) (typep x ’uuid-v3-4-or-5-int))
(loop for x from 2 below 7 collect x))
1 4)
(list T T T))

(equal (mapcar #’(lambda (x) (typep (uuid-version-uuid x) ’uuid-v3-4-or-5-int))
(list (make-v3-uuid *uuid-namespace-dns* "bubba") (make-v4-uuid)
(make-v5-uuid *uuid-namespace-dns* "bubba")))
(list T T T))

:SEE-ALSO ‘unicly::uuid-version-int’, ‘unicly::uuid-v3-or-5-int’, ‘unicly::uuid-version-bit-vector’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-v3-or-5-int ()

An integer value either 3 or 5.

Range represents the possible return values for ‘unicly:uuid-version-uuid’ when
an object is a UUID as per return value of:

‘make-v3-uuid’ ‘make-v5-uuid’

:EXAMPLE

(equal (subseq (mapcar #’(lambda (x) (typep x ’uuid-v3-or-5-int))
(loop for x from 2 below 7 collect x))
1 4)
(list T NIL T))

(equal (mapcar #’(lambda (x) (typep (uuid-version-uuid x) ’uuid-v3-or-5-int))
(list (make-v3-uuid *uuid-namespace-dns* "bubba") (make-v4-uuid)
(make-v5-uuid *uuid-namespace-dns* "bubba")))
(list T NIL T))

:SEE-ALSO ‘unicly::uuid-version-int’, ‘unicly::uuid-v3-4-or-5-int’, ‘unicly::uuid-version-bit-vector’.

Package

unicly.

Source

unicly-types.lisp.

Type: uuid-version-int ()

An integer value in the range [0,5].

Range represents the possible return values for ‘unicly:uuid-version-uuid’ when
an object is a UUID as per return value of:

‘unicly:make-v3-uuid’, ‘unicly:make-v4-uuid’, ‘unicly:make-v5-uuid’

and exclusive of return value for ‘unicly:make-null-uuid’.

:EXAMPLE

(loop
for x from 0 below 6
for y = (typep x ’uuid-version-int)
always y)

:SEE-ALSO ‘unicly::uuid-v3-or-5-int’, ‘unicly::uuid-v3-4-or-5-int’, ‘unicly::uuid-version-bit-vector’.

Package

unicly.

Source

unicly-types.lisp.


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   %  
C   D   F   G   H   M   P   S   T   U   V  
Index Entry  Section

%
%def-uuid-format-and-intern-symbol: Private ordinary functions
%def-uuid-format-and-intern-symbol-type-checker: Private ordinary functions
%def-uuid-format-and-intern-symbol-type-predicate: Private ordinary functions
%lw-string-zerop: Private ordinary functions
%make-null-uuid-loadtime: Private ordinary functions
%make-uuid-from-bit-vector-extendable-bv-zeroed-error: Private ordinary functions
%make-uuid-from-byte-array-extended-null-array-error: Private ordinary functions
%make-uuid-from-string-extended-null-string-error: Private ordinary functions
%string-not-empty-p: Private ordinary functions
%unique-universal-identifier-null-p: Private ordinary functions
%uuid-bit-vector-null-p: Private ordinary functions
%uuid-byte-array-null-p: Private ordinary functions
%uuid-digest-uuid-instance-md5: Private ordinary functions
%uuid-digest-uuid-instance-sha1: Private ordinary functions
%uuid-hex-string-36-null-string-p: Private ordinary functions
%uuid-octets-to-string: Private ordinary functions
%uuid-string-to-octets: Private ordinary functions
%uuid-uuid-version-if: Private ordinary functions
%uuid-version-bit-vector-if: Private ordinary functions
%uuid_byte-array-16-ub8-reqeust: Private ordinary functions
%uuid_clock-seq-and-reserved-request: Private ordinary functions
%uuid_clock-seq-and-reserved-request-bit-vector: Private ordinary functions
%uuid_clock-seq-low-request: Private ordinary functions
%uuid_clock-seq-low-request-bit-vector: Private ordinary functions
%uuid_node-request: Private ordinary functions
%uuid_node-request-bit-vector: Private ordinary functions
%uuid_time-high-and-version-request: Private ordinary functions
%uuid_time-high-and-version-request-bit-vector: Private ordinary functions
%uuid_time-low-request: Private ordinary functions
%uuid_time-low-request-bit-vector: Private ordinary functions
%uuid_time-mid-request: Private ordinary functions
%uuid_time-mid-request-bit-vector: Private ordinary functions
%verify-digest-version: Private ordinary functions
%verify-non-empty-name-arg: Private ordinary functions
%verify-non-null-namespace-arg: Private ordinary functions
%verify-slot-boundp-and-type: Private ordinary functions
%verify-valid-subclass-and-slots: Private ordinary functions
%verify-valid-uuid-subclass-slots: Private ordinary functions
%verify-valid-uuid-subclass-type: Private ordinary functions
%verify-version-3-or-5: Private ordinary functions

C
Compiler Macro, uuid-request-integer: Private compiler macros

D
def-indexed-hexstring-integer-parser: Private macros
def-make-uuid-byte-array-extended: Private macros
def-make-uuid-extend-class-fun: Private macros
def-make-uuid-from-string-extended: Private macros
def-make-v3-uuid-extended: Private macros
def-make-v4-uuid-extended: Private macros
def-make-v5-uuid-extended: Private macros
def-uuid-bit-vector-length-type: Private macros
def-uuid-bit-vector-n-type: Private macros
def-uuid-bit-vector-zeroed: Private macros
def-uuid-byte-array-length: Private macros
def-uuid-from-bit-vector-extendable: Private macros
def-uuid-predicate-and-type-check-definer: Private macros
def-uuid-request-integer-bit-vector: Private macros
def-uuid-type-check-definer: Private macros
def-uuid-type-definer: Private macros
def-uuid-type-predicate-definer: Private macros
def-uuid-unsigned-byte-integer-length: Private macros
def-uuid-unsigned-byte-size: Private macros
def-uuid-uuid-hex-string-length: Private macros
defconst: Private macros
digested-v3-uuid: Private ordinary functions
digested-v3or5-uuid: Private ordinary functions
digested-v5-uuid: Private ordinary functions
doc-set: Private ordinary functions

F
Function, %def-uuid-format-and-intern-symbol: Private ordinary functions
Function, %def-uuid-format-and-intern-symbol-type-checker: Private ordinary functions
Function, %def-uuid-format-and-intern-symbol-type-predicate: Private ordinary functions
Function, %lw-string-zerop: Private ordinary functions
Function, %make-null-uuid-loadtime: Private ordinary functions
Function, %make-uuid-from-bit-vector-extendable-bv-zeroed-error: Private ordinary functions
Function, %make-uuid-from-byte-array-extended-null-array-error: Private ordinary functions
Function, %make-uuid-from-string-extended-null-string-error: Private ordinary functions
Function, %string-not-empty-p: Private ordinary functions
Function, %unique-universal-identifier-null-p: Private ordinary functions
Function, %uuid-bit-vector-null-p: Private ordinary functions
Function, %uuid-byte-array-null-p: Private ordinary functions
Function, %uuid-digest-uuid-instance-md5: Private ordinary functions
Function, %uuid-digest-uuid-instance-sha1: Private ordinary functions
Function, %uuid-hex-string-36-null-string-p: Private ordinary functions
Function, %uuid-octets-to-string: Private ordinary functions
Function, %uuid-string-to-octets: Private ordinary functions
Function, %uuid-uuid-version-if: Private ordinary functions
Function, %uuid-version-bit-vector-if: Private ordinary functions
Function, %uuid_byte-array-16-ub8-reqeust: Private ordinary functions
Function, %uuid_clock-seq-and-reserved-request: Private ordinary functions
Function, %uuid_clock-seq-and-reserved-request-bit-vector: Private ordinary functions
Function, %uuid_clock-seq-low-request: Private ordinary functions
Function, %uuid_clock-seq-low-request-bit-vector: Private ordinary functions
Function, %uuid_node-request: Private ordinary functions
Function, %uuid_node-request-bit-vector: Private ordinary functions
Function, %uuid_time-high-and-version-request: Private ordinary functions
Function, %uuid_time-high-and-version-request-bit-vector: Private ordinary functions
Function, %uuid_time-low-request: Private ordinary functions
Function, %uuid_time-low-request-bit-vector: Private ordinary functions
Function, %uuid_time-mid-request: Private ordinary functions
Function, %uuid_time-mid-request-bit-vector: Private ordinary functions
Function, %verify-digest-version: Private ordinary functions
Function, %verify-non-empty-name-arg: Private ordinary functions
Function, %verify-non-null-namespace-arg: Private ordinary functions
Function, %verify-slot-boundp-and-type: Private ordinary functions
Function, %verify-valid-subclass-and-slots: Private ordinary functions
Function, %verify-valid-uuid-subclass-slots: Private ordinary functions
Function, %verify-valid-uuid-subclass-type: Private ordinary functions
Function, %verify-version-3-or-5: Private ordinary functions
Function, digested-v3-uuid: Private ordinary functions
Function, digested-v3or5-uuid: Private ordinary functions
Function, digested-v5-uuid: Private ordinary functions
Function, doc-set: Private ordinary functions
Function, fundoc: Private ordinary functions
Function, generic-doc: Private ordinary functions
Function, hexadecimal-char-p: Private ordinary functions
Function, make-hash-table-uuid: Public ordinary functions
Function, make-null-uuid: Public ordinary functions
Function, make-uuid-from-string: Public ordinary functions
Function, make-uuid-from-string-if: Private ordinary functions
Function, make-v3-uuid: Public ordinary functions
Function, make-v4-uuid: Public ordinary functions
Function, make-v5-uuid: Public ordinary functions
Function, method-doc: Private ordinary functions
Function, simple-string-compat-p: Private ordinary functions
Function, string-all-hex-char-p: Private ordinary functions
Function, string-not-null-or-empty-p: Private ordinary functions
Function, string-with-fill-pointer-check-type: Private ordinary functions
Function, string-with-fill-pointer-p: Private ordinary functions
Function, sxhash-uuid: Public ordinary functions
Function, type-specifier-p: Private ordinary functions
Function, typedoc: Private ordinary functions
Function, unique-universal-identifier-null-p: Public ordinary functions
Function, uuid-as-urn-string: Public ordinary functions
Function, uuid-assemble-ub16: Private ordinary functions
Function, uuid-assemble-ub32: Private ordinary functions
Function, uuid-assemble-ub48: Private ordinary functions
Function, uuid-bit-vector-128-check-type: Private ordinary functions
Function, uuid-bit-vector-128-p: Public ordinary functions
Function, uuid-bit-vector-128-zeroed: Private ordinary functions
Function, uuid-bit-vector-16-check-type: Private ordinary functions
Function, uuid-bit-vector-16-p: Private ordinary functions
Function, uuid-bit-vector-16-zeroed: Private ordinary functions
Function, uuid-bit-vector-32-check-type: Private ordinary functions
Function, uuid-bit-vector-32-p: Private ordinary functions
Function, uuid-bit-vector-32-zeroed: Private ordinary functions
Function, uuid-bit-vector-48-check-type: Private ordinary functions
Function, uuid-bit-vector-48-p: Private ordinary functions
Function, uuid-bit-vector-48-zeroed: Private ordinary functions
Function, uuid-bit-vector-8-zeroed: Private ordinary functions
Function, uuid-bit-vector-build-offsets: Private ordinary functions
Function, uuid-bit-vector-eql: Public ordinary functions
Function, uuid-bit-vector-null-p: Public ordinary functions
Function, uuid-bit-vector-to-byte-array: Public ordinary functions
Function, uuid-bit-vector-to-integer: Private ordinary functions
Function, uuid-bit-vector-v3-p: Public ordinary functions
Function, uuid-bit-vector-v4-p: Public ordinary functions
Function, uuid-bit-vector-v5-p: Public ordinary functions
Function, uuid-byte-array-16-check-type: Private ordinary functions
Function, uuid-byte-array-16-p: Public ordinary functions
Function, uuid-byte-array-16-to-integer: Public ordinary functions
Function, uuid-byte-array-16-zeroed: Public ordinary functions
Function, uuid-byte-array-20-check-type: Private ordinary functions
Function, uuid-byte-array-20-p: Private ordinary functions
Function, uuid-byte-array-check-type: Private ordinary functions
Function, uuid-byte-array-null-p: Public ordinary functions
Function, uuid-byte-array-p: Private ordinary functions
Function, uuid-byte-array-to-bit-vector: Public ordinary functions
Function, uuid-byte-string-check-type: Private ordinary functions
Function, uuid-byte-string-p: Public ordinary functions
Function, uuid-copy-uuid: Public ordinary functions
Function, uuid-delimited-string-36-p: Private ordinary functions
Function, uuid-deposit-octet-to-bit-vector: Private ordinary functions
Function, uuid-deserialize-bit-vector-bits: Private ordinary functions
Function, uuid-deserialize-byte-array-bytes: Private ordinary functions
Function, uuid-digest-uuid-instance: Private ordinary functions
Function, uuid-disassemble-ub16: Private ordinary functions
Function, uuid-disassemble-ub32: Private ordinary functions
Function, uuid-disassemble-ub48: Private ordinary functions
Function, uuid-from-bit-vector: Public ordinary functions
Function, uuid-from-byte-array: Public ordinary functions
Function, uuid-get-namespace-bytes: Public ordinary functions
Function, uuid-hex-string-32-p: Public ordinary functions
Function, uuid-hex-string-36-p: Public ordinary functions
Function, uuid-hex-vector-parse-clock-seq-and-reserved: Private ordinary functions
Function, uuid-hex-vector-parse-clock-seq-low: Private ordinary functions
Function, uuid-hex-vector-parse-node: Private ordinary functions
Function, uuid-hex-vector-parse-time-high-and-version: Private ordinary functions
Function, uuid-hex-vector-parse-time-low: Private ordinary functions
Function, uuid-hex-vector-parse-time-mid: Private ordinary functions
Function, uuid-integer-128-to-bit-vector: Private ordinary functions
Function, uuid-integer-128-to-byte-array: Private ordinary functions
Function, uuid-octet-to-bit-vector-8: Private ordinary functions
Function, uuid-read-bit-vector-bits: Private ordinary functions
Function, uuid-request-integer: Private ordinary functions
Function, uuid-serialize-bit-vector-bits: Private ordinary functions
Function, uuid-serialize-byte-array-bytes: Private ordinary functions
Function, uuid-simple-type-error: Private ordinary functions
Function, uuid-simple-vector-5-check-type: Private ordinary functions
Function, uuid-simple-vector-5-p: Private ordinary functions
Function, uuid-string-32-check-type: Private ordinary functions
Function, uuid-string-32-p: Public ordinary functions
Function, uuid-string-36-check-type: Private ordinary functions
Function, uuid-string-36-p: Public ordinary functions
Function, uuid-to-bit-vector: Public ordinary functions
Function, uuid-to-byte-array: Private ordinary functions
Function, uuid-valid-stream-p: Private ordinary functions
Function, uuid-valid-stream-verify-for-input: Private ordinary functions
Function, uuid-valid-stream-verify-for-output: Private ordinary functions
Function, uuid-valid-stream-verify-io-octet-type: Private ordinary functions
Function, uuid-valid-stream-verify-io-type: Private ordinary functions
Function, uuid-valid-stream-verify-octet-stream-for-input: Private ordinary functions
Function, uuid-valid-stream-verify-octet-stream-for-output: Private ordinary functions
Function, uuid-verify-bit-vector-simplicity: Private ordinary functions
Function, uuid-version-bit-vector: Private ordinary functions
Function, uuid-version-uuid: Public ordinary functions
Function, vardoc: Private ordinary functions
Function, vector-with-fill-pointer-p: Private ordinary functions
Function, verify-sane-namespace-and-name: Private ordinary functions
fundoc: Private ordinary functions

G
Generic Function, unique-universal-identifier-p: Public generic functions
Generic Function, uuid-bit-48-error-datum: Private generic functions
Generic Function, uuid-bit-48-error-expected-type: Private generic functions
Generic Function, uuid-eql: Public generic functions
Generic Function, uuid-princ-to-string: Public generic functions
Generic Function, uuid-print-bit-vector: Public generic functions
Generic Function, uuid-print-bytes: Private generic functions
Generic Function, uuid-print-bytes-to-string: Public generic functions
Generic Function, uuid-slot-unbound-name: Private generic functions
Generic Function, uuid-slot-unbound-object: Private generic functions
generic-doc: Private ordinary functions

H
hexadecimal-char-p: Private ordinary functions

M
Macro, def-indexed-hexstring-integer-parser: Private macros
Macro, def-make-uuid-byte-array-extended: Private macros
Macro, def-make-uuid-extend-class-fun: Private macros
Macro, def-make-uuid-from-string-extended: Private macros
Macro, def-make-v3-uuid-extended: Private macros
Macro, def-make-v4-uuid-extended: Private macros
Macro, def-make-v5-uuid-extended: Private macros
Macro, def-uuid-bit-vector-length-type: Private macros
Macro, def-uuid-bit-vector-n-type: Private macros
Macro, def-uuid-bit-vector-zeroed: Private macros
Macro, def-uuid-byte-array-length: Private macros
Macro, def-uuid-from-bit-vector-extendable: Private macros
Macro, def-uuid-predicate-and-type-check-definer: Private macros
Macro, def-uuid-request-integer-bit-vector: Private macros
Macro, def-uuid-type-check-definer: Private macros
Macro, def-uuid-type-definer: Private macros
Macro, def-uuid-type-predicate-definer: Private macros
Macro, def-uuid-unsigned-byte-integer-length: Private macros
Macro, def-uuid-unsigned-byte-size: Private macros
Macro, def-uuid-uuid-hex-string-length: Private macros
Macro, defconst: Private macros
Macro, uuid-string-parse-integer: Private macros
Macro, uuid-svref-for-parse-integer: Private macros
make-hash-table-uuid: Public ordinary functions
make-null-uuid: Public ordinary functions
make-uuid-from-string: Public ordinary functions
make-uuid-from-string-if: Private ordinary functions
make-v3-uuid: Public ordinary functions
make-v4-uuid: Public ordinary functions
make-v5-uuid: Public ordinary functions
Method, print-object: Public standalone methods
Method, unique-universal-identifier-p: Public generic functions
Method, unique-universal-identifier-p: Public generic functions
Method, unique-universal-identifier-p: Public generic functions
Method, uuid-bit-48-error-datum: Private generic functions
Method, uuid-bit-48-error-expected-type: Private generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-eql: Public generic functions
Method, uuid-princ-to-string: Public generic functions
Method, uuid-print-bit-vector: Public generic functions
Method, uuid-print-bit-vector: Public generic functions
Method, uuid-print-bit-vector: Public generic functions
Method, uuid-print-bytes: Private generic functions
Method, uuid-print-bytes-to-string: Public generic functions
Method, uuid-print-bytes-to-string: Public generic functions
Method, uuid-slot-unbound-name: Private generic functions
Method, uuid-slot-unbound-object: Private generic functions
method-doc: Private ordinary functions

P
print-object: Public standalone methods

S
simple-string-compat-p: Private ordinary functions
string-all-hex-char-p: Private ordinary functions
string-not-null-or-empty-p: Private ordinary functions
string-with-fill-pointer-check-type: Private ordinary functions
string-with-fill-pointer-p: Private ordinary functions
sxhash-uuid: Public ordinary functions

T
type-specifier-p: Private ordinary functions
typedoc: Private ordinary functions

U
unique-universal-identifier-null-p: Public ordinary functions
unique-universal-identifier-p: Public generic functions
unique-universal-identifier-p: Public generic functions
unique-universal-identifier-p: Public generic functions
unique-universal-identifier-p: Public generic functions
uuid-as-urn-string: Public ordinary functions
uuid-assemble-ub16: Private ordinary functions
uuid-assemble-ub32: Private ordinary functions
uuid-assemble-ub48: Private ordinary functions
uuid-bit-48-error-datum: Private generic functions
uuid-bit-48-error-datum: Private generic functions
uuid-bit-48-error-expected-type: Private generic functions
uuid-bit-48-error-expected-type: Private generic functions
uuid-bit-vector-128-check-type: Private ordinary functions
uuid-bit-vector-128-p: Public ordinary functions
uuid-bit-vector-128-zeroed: Private ordinary functions
uuid-bit-vector-16-check-type: Private ordinary functions
uuid-bit-vector-16-p: Private ordinary functions
uuid-bit-vector-16-zeroed: Private ordinary functions
uuid-bit-vector-32-check-type: Private ordinary functions
uuid-bit-vector-32-p: Private ordinary functions
uuid-bit-vector-32-zeroed: Private ordinary functions
uuid-bit-vector-48-check-type: Private ordinary functions
uuid-bit-vector-48-p: Private ordinary functions
uuid-bit-vector-48-zeroed: Private ordinary functions
uuid-bit-vector-8-zeroed: Private ordinary functions
uuid-bit-vector-build-offsets: Private ordinary functions
uuid-bit-vector-eql: Public ordinary functions
uuid-bit-vector-null-p: Public ordinary functions
uuid-bit-vector-to-byte-array: Public ordinary functions
uuid-bit-vector-to-integer: Private ordinary functions
uuid-bit-vector-v3-p: Public ordinary functions
uuid-bit-vector-v4-p: Public ordinary functions
uuid-bit-vector-v5-p: Public ordinary functions
uuid-byte-array-16-check-type: Private ordinary functions
uuid-byte-array-16-p: Public ordinary functions
uuid-byte-array-16-to-integer: Public ordinary functions
uuid-byte-array-16-zeroed: Public ordinary functions
uuid-byte-array-20-check-type: Private ordinary functions
uuid-byte-array-20-p: Private ordinary functions
uuid-byte-array-check-type: Private ordinary functions
uuid-byte-array-null-p: Public ordinary functions
uuid-byte-array-p: Private ordinary functions
uuid-byte-array-to-bit-vector: Public ordinary functions
uuid-byte-string-check-type: Private ordinary functions
uuid-byte-string-p: Public ordinary functions
uuid-copy-uuid: Public ordinary functions
uuid-delimited-string-36-p: Private ordinary functions
uuid-deposit-octet-to-bit-vector: Private ordinary functions
uuid-deserialize-bit-vector-bits: Private ordinary functions
uuid-deserialize-byte-array-bytes: Private ordinary functions
uuid-digest-uuid-instance: Private ordinary functions
uuid-disassemble-ub16: Private ordinary functions
uuid-disassemble-ub32: Private ordinary functions
uuid-disassemble-ub48: Private ordinary functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-eql: Public generic functions
uuid-from-bit-vector: Public ordinary functions
uuid-from-byte-array: Public ordinary functions
uuid-get-namespace-bytes: Public ordinary functions
uuid-hex-string-32-p: Public ordinary functions
uuid-hex-string-36-p: Public ordinary functions
uuid-hex-vector-parse-clock-seq-and-reserved: Private ordinary functions
uuid-hex-vector-parse-clock-seq-low: Private ordinary functions
uuid-hex-vector-parse-node: Private ordinary functions
uuid-hex-vector-parse-time-high-and-version: Private ordinary functions
uuid-hex-vector-parse-time-low: Private ordinary functions
uuid-hex-vector-parse-time-mid: Private ordinary functions
uuid-integer-128-to-bit-vector: Private ordinary functions
uuid-integer-128-to-byte-array: Private ordinary functions
uuid-octet-to-bit-vector-8: Private ordinary functions
uuid-princ-to-string: Public generic functions
uuid-princ-to-string: Public generic functions
uuid-print-bit-vector: Public generic functions
uuid-print-bit-vector: Public generic functions
uuid-print-bit-vector: Public generic functions
uuid-print-bit-vector: Public generic functions
uuid-print-bytes: Private generic functions
uuid-print-bytes: Private generic functions
uuid-print-bytes-to-string: Public generic functions
uuid-print-bytes-to-string: Public generic functions
uuid-print-bytes-to-string: Public generic functions
uuid-read-bit-vector-bits: Private ordinary functions
uuid-request-integer: Private compiler macros
uuid-request-integer: Private ordinary functions
uuid-serialize-bit-vector-bits: Private ordinary functions
uuid-serialize-byte-array-bytes: Private ordinary functions
uuid-simple-type-error: Private ordinary functions
uuid-simple-vector-5-check-type: Private ordinary functions
uuid-simple-vector-5-p: Private ordinary functions
uuid-slot-unbound-name: Private generic functions
uuid-slot-unbound-name: Private generic functions
uuid-slot-unbound-object: Private generic functions
uuid-slot-unbound-object: Private generic functions
uuid-string-32-check-type: Private ordinary functions
uuid-string-32-p: Public ordinary functions
uuid-string-36-check-type: Private ordinary functions
uuid-string-36-p: Public ordinary functions
uuid-string-parse-integer: Private macros
uuid-svref-for-parse-integer: Private macros
uuid-to-bit-vector: Public ordinary functions
uuid-to-byte-array: Private ordinary functions
uuid-valid-stream-p: Private ordinary functions
uuid-valid-stream-verify-for-input: Private ordinary functions
uuid-valid-stream-verify-for-output: Private ordinary functions
uuid-valid-stream-verify-io-octet-type: Private ordinary functions
uuid-valid-stream-verify-io-type: Private ordinary functions
uuid-valid-stream-verify-octet-stream-for-input: Private ordinary functions
uuid-valid-stream-verify-octet-stream-for-output: Private ordinary functions
uuid-verify-bit-vector-simplicity: Private ordinary functions
uuid-version-bit-vector: Private ordinary functions
uuid-version-uuid: Public ordinary functions

V
vardoc: Private ordinary functions
vector-with-fill-pointer-p: Private ordinary functions
verify-sane-namespace-and-name: Private ordinary functions


A.3 Variables

Jump to:   %   *   +  
C   S   U  
Index Entry  Section

%
%uuid_clock-seq-and-reserved: Public classes
%uuid_clock-seq-low: Public classes
%uuid_node: Public classes
%uuid_null: Private classes
%uuid_time-high-and-version: Public classes
%uuid_time-low: Public classes
%uuid_time-mid: Public classes

*
*author-maintainer-contact*: Private special variables
*hexadecimal-chars*: Private special variables
*random-state-uuid*: Private special variables
*uuid-allow-empty-string-name-args*: Private special variables
*uuid-allow-null-like-namespace-args*: Private special variables
*uuid-namespace-dns*: Public special variables
*uuid-namespace-oid*: Public special variables
*uuid-namespace-url*: Public special variables
*uuid-namespace-x500*: Public special variables
*uuid-null-uuid*: Private special variables

+
+%%uuid-sxhash-truncating-node%%+: Private constants
+uuid-null-string+: Private constants

C
Constant, +%%uuid-sxhash-truncating-node%%+: Private constants
Constant, +uuid-null-string+: Private constants

S
Slot, %uuid_clock-seq-and-reserved: Public classes
Slot, %uuid_clock-seq-low: Public classes
Slot, %uuid_node: Public classes
Slot, %uuid_null: Private classes
Slot, %uuid_time-high-and-version: Public classes
Slot, %uuid_time-low: Public classes
Slot, %uuid_time-mid: Public classes
Slot, uuid-bit-48-error-datum: Private conditions
Slot, uuid-bit-48-error-expected-type: Private conditions
Slot, uuid-slot-unbound-name: Private conditions
Slot, uuid-slot-unbound-object: Private conditions
Special Variable, *author-maintainer-contact*: Private special variables
Special Variable, *hexadecimal-chars*: Private special variables
Special Variable, *random-state-uuid*: Private special variables
Special Variable, *uuid-allow-empty-string-name-args*: Private special variables
Special Variable, *uuid-allow-null-like-namespace-args*: Private special variables
Special Variable, *uuid-namespace-dns*: Public special variables
Special Variable, *uuid-namespace-oid*: Public special variables
Special Variable, *uuid-namespace-url*: Public special variables
Special Variable, *uuid-namespace-x500*: Public special variables
Special Variable, *uuid-null-uuid*: Private special variables

U
uuid-bit-48-error-datum: Private conditions
uuid-bit-48-error-expected-type: Private conditions
uuid-slot-unbound-name: Private conditions
uuid-slot-unbound-object: Private conditions


A.4 Data types

Jump to:   C   F   H   N   P   S   T   U  
Index Entry  Section

C
char-compat: Private types
Class, unique-universal-identifier: Public classes
Class, unique-universal-identifier-null: Private classes
Condition, uuid-bit-48-error: Private conditions
Condition, uuid-error: Private conditions
Condition, uuid-simple-error: Private conditions
Condition, uuid-simple-type-error: Private conditions
Condition, uuid-slot-type-error: Private conditions
Condition, uuid-slot-unbound-error: Private conditions

F
File, package.lisp: The unicly/package․lisp file
File, unicly-bit-vectors.lisp: The unicly/unicly-bit-vectors․lisp file
File, unicly-bridge.lisp: The unicly/unicly-bridge․lisp file
File, unicly-byte-arrays.lisp: The unicly/unicly-byte-arrays․lisp file
File, unicly-class.lisp: The unicly/unicly-class․lisp file
File, unicly-conditions.lisp: The unicly/unicly-conditions․lisp file
File, unicly-docs.lisp: The unicly/unicly-docs․lisp file
File, unicly-extend.lisp: The unicly/unicly-extend․lisp file
File, unicly-hash-table.lisp: The unicly/unicly-hash-table․lisp file
File, unicly-integers.lisp: The unicly/unicly-integers․lisp file
File, unicly-io.lisp: The unicly/unicly-io․lisp file
File, unicly-macros.lisp: The unicly/unicly-macros․lisp file
File, unicly-null-check.lisp: The unicly/unicly-null-check․lisp file
File, unicly-specials.lisp: The unicly/unicly-specials․lisp file
File, unicly-string-uuid.lisp: The unicly/unicly-string-uuid․lisp file
File, unicly-types.lisp: The unicly/unicly-types․lisp file
File, unicly-utils.lisp: The unicly/unicly-utils․lisp file
File, unicly-uuid-version.lisp: The unicly/unicly-uuid-version․lisp file
File, unicly.asd: The unicly/unicly․asd file
File, unicly.lisp: The unicly/unicly․lisp file

H
hexadecimal-char: Private types

N
not-null: Private types

P
Package, unicly: The unicly package
Package, unicly-asd: The unicly-asd package
package.lisp: The unicly/package․lisp file

S
simple-string-compat: Private types
simple-string-n-length-compat: Private types
stream-or-boolean: Private types
stream-or-boolean-or-string-with-fill-pointer: Private types
string-compat: Private types
string-empty: Private types
string-n-length-compat: Private types
string-not-empty: Private types
string-not-null-or-empty: Private types
string-or-null: Private types
string-with-fill-pointer: Private types
System, unicly: The unicly system

T
Type, char-compat: Private types
Type, hexadecimal-char: Private types
Type, not-null: Private types
Type, simple-string-compat: Private types
Type, simple-string-n-length-compat: Private types
Type, stream-or-boolean: Private types
Type, stream-or-boolean-or-string-with-fill-pointer: Private types
Type, string-compat: Private types
Type, string-empty: Private types
Type, string-n-length-compat: Private types
Type, string-not-empty: Private types
Type, string-not-null-or-empty: Private types
Type, string-or-null: Private types
Type, string-with-fill-pointer: Private types
Type, uuid-bit-vector: Private types
Type, uuid-bit-vector-128: Private types
Type, uuid-bit-vector-128-length: Private types
Type, uuid-bit-vector-16: Private types
Type, uuid-bit-vector-16-length: Private types
Type, uuid-bit-vector-32: Private types
Type, uuid-bit-vector-32-length: Private types
Type, uuid-bit-vector-48: Private types
Type, uuid-bit-vector-48-length: Private types
Type, uuid-bit-vector-8: Private types
Type, uuid-bit-vector-8-length: Private types
Type, uuid-bit-vector-index: Private types
Type, uuid-bit-vector-length: Private types
Type, uuid-bit-vector-null: Private types
Type, uuid-bit-vector-valid-bit-offset: Private types
Type, uuid-bit-vector-valid-bit-width: Private types
Type, uuid-bit-vector-valid-length: Private types
Type, uuid-byte-array: Private types
Type, uuid-byte-array-16: Private types
Type, uuid-byte-array-20: Private types
Type, uuid-byte-array-null: Private types
Type, uuid-byte-string: Private types
Type, uuid-hex-string-12: Private types
Type, uuid-hex-string-2: Private types
Type, uuid-hex-string-32: Private types
Type, uuid-hex-string-36: Private types
Type, uuid-hex-string-4: Private types
Type, uuid-hex-string-8: Private types
Type, uuid-hex-string-length: Private types
Type, uuid-simple-string-vector-5: Private types
Type, uuid-simple-vector-5: Private types
Type, uuid-string-32: Private types
Type, uuid-string-36: Private types
Type, uuid-ub128: Private types
Type, uuid-ub128-integer-length: Private types
Type, uuid-ub16: Private types
Type, uuid-ub24: Private types
Type, uuid-ub25-integer-length: Private types
Type, uuid-ub32: Private types
Type, uuid-ub33-integer-length: Private types
Type, uuid-ub48: Private types
Type, uuid-ub49-integer-length: Private types
Type, uuid-ub64: Private types
Type, uuid-ub64-integer-length: Private types
Type, uuid-ub8: Private types
Type, uuid-ub9-integer-length: Private types
Type, uuid-unsigned-byte-integer-length: Private types
Type, uuid-unsigned-byte-size: Private types
Type, uuid-v3-4-or-5-int: Private types
Type, uuid-v3-or-5-int: Private types
Type, uuid-version-int: Private types

U
unicly: The unicly system
unicly: The unicly package
unicly-asd: The unicly-asd package
unicly-bit-vectors.lisp: The unicly/unicly-bit-vectors․lisp file
unicly-bridge.lisp: The unicly/unicly-bridge․lisp file
unicly-byte-arrays.lisp: The unicly/unicly-byte-arrays․lisp file
unicly-class.lisp: The unicly/unicly-class․lisp file
unicly-conditions.lisp: The unicly/unicly-conditions․lisp file
unicly-docs.lisp: The unicly/unicly-docs․lisp file
unicly-extend.lisp: The unicly/unicly-extend․lisp file
unicly-hash-table.lisp: The unicly/unicly-hash-table․lisp file
unicly-integers.lisp: The unicly/unicly-integers․lisp file
unicly-io.lisp: The unicly/unicly-io․lisp file
unicly-macros.lisp: The unicly/unicly-macros․lisp file
unicly-null-check.lisp: The unicly/unicly-null-check․lisp file
unicly-specials.lisp: The unicly/unicly-specials․lisp file
unicly-string-uuid.lisp: The unicly/unicly-string-uuid․lisp file
unicly-types.lisp: The unicly/unicly-types․lisp file
unicly-utils.lisp: The unicly/unicly-utils․lisp file
unicly-uuid-version.lisp: The unicly/unicly-uuid-version․lisp file
unicly.asd: The unicly/unicly․asd file
unicly.lisp: The unicly/unicly․lisp file
unique-universal-identifier: Public classes
unique-universal-identifier-null: Private classes
uuid-bit-48-error: Private conditions
uuid-bit-vector: Private types
uuid-bit-vector-128: Private types
uuid-bit-vector-128-length: Private types
uuid-bit-vector-16: Private types
uuid-bit-vector-16-length: Private types
uuid-bit-vector-32: Private types
uuid-bit-vector-32-length: Private types
uuid-bit-vector-48: Private types
uuid-bit-vector-48-length: Private types
uuid-bit-vector-8: Private types
uuid-bit-vector-8-length: Private types
uuid-bit-vector-index: Private types
uuid-bit-vector-length: Private types
uuid-bit-vector-null: Private types
uuid-bit-vector-valid-bit-offset: Private types
uuid-bit-vector-valid-bit-width: Private types
uuid-bit-vector-valid-length: Private types
uuid-byte-array: Private types
uuid-byte-array-16: Private types
uuid-byte-array-20: Private types
uuid-byte-array-null: Private types
uuid-byte-string: Private types
uuid-error: Private conditions
uuid-hex-string-12: Private types
uuid-hex-string-2: Private types
uuid-hex-string-32: Private types
uuid-hex-string-36: Private types
uuid-hex-string-4: Private types
uuid-hex-string-8: Private types
uuid-hex-string-length: Private types
uuid-simple-error: Private conditions
uuid-simple-string-vector-5: Private types
uuid-simple-type-error: Private conditions
uuid-simple-vector-5: Private types
uuid-slot-type-error: Private conditions
uuid-slot-unbound-error: Private conditions
uuid-string-32: Private types
uuid-string-36: Private types
uuid-ub128: Private types
uuid-ub128-integer-length: Private types
uuid-ub16: Private types
uuid-ub24: Private types
uuid-ub25-integer-length: Private types
uuid-ub32: Private types
uuid-ub33-integer-length: Private types
uuid-ub48: Private types
uuid-ub49-integer-length: Private types
uuid-ub64: Private types
uuid-ub64-integer-length: Private types
uuid-ub8: Private types
uuid-ub9-integer-length: Private types
uuid-unsigned-byte-integer-length: Private types
uuid-unsigned-byte-size: Private types
uuid-v3-4-or-5-int: Private types
uuid-v3-or-5-int: Private types
uuid-version-int: Private types