Add version 7 UUID generation

This commit is contained in:
Feoramund
2024-06-22 18:21:31 -04:00
parent fee81985b4
commit 4cfbd83b10
4 changed files with 151 additions and 1 deletions
+5
View File
@@ -8,6 +8,11 @@ EXPECTED_LENGTH :: 8 + 4 + 4 + 4 + 12 + 4
VERSION_BYTE_INDEX :: 6
VARIANT_BYTE_INDEX :: 8
VERSION_7_TIME_MASK :: 0xffffffff_ffff0000_00000000_00000000
VERSION_7_TIME_SHIFT :: 80
VERSION_7_COUNTER_MASK :: 0x00000000_00000fff_00000000_00000000
VERSION_7_COUNTER_SHIFT :: 64
Read_Error :: enum {
None,
Invalid_Length,