commit 3058b26e8f61aedaf25cae6d5c6b65a0ff8db96e
parent 79768eb8a3fbd5a7d3001bc6a60247d0c4c41fca
Author: Drew DeVault <sir@cmpwn.com>
Date: Thu, 6 May 2021 10:07:59 -0400
uuid: improve docs
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/uuid/uuid.ha b/uuid/uuid.ha
@@ -11,8 +11,13 @@ use strio;
// A UUID.
export type uuid = [16]u8;
+// The length of a UUID in bytes.
export def UUID_LEN: size = 16;
+
+// The length of a UUID in runes when encoded as a string.
export def UUID_STRLEN: size = 36;
+
+// The length of the return value of [[uri]] in runes.
export def UUID_URILEN: size = 45;
// The "nil" UUID, with all bits set to zero.