struct UUID
- UUID
- Struct
- Value
- Object
Overview
monkey patch UUID to introduce a new class method onto UUID
Included Modules
- Comparable(UUID)
Defined in:
extlib.crConstructors
-
.from_u128(u128 : UInt128, version : UUID::Version | Nil = nil, variant : UUID::Variant | Nil = nil) : UUID
Returns a UUID from a given u128 NOTE: The the most significant byte of the u128 is the most significant byte (left-most byte) of the UUID, and the least significant byte of the u128 is the least significant byte (right-most byte) of the UUID.
-
.from_u128_inverted(u128 : UInt128, version : UUID::Version | Nil = nil, variant : UUID::Variant | Nil = nil) : UUID
Returns a UUID from a given u128 NOTE: This encoding is called "inverted" because the the most significant byte of the u128 is the least significant byte (right-most byte) of the UUID and the least significant byte of the u128 is the most significant byte (left-most byte) of the UUID.
Instance Method Summary
Constructor Detail
Returns a UUID from a given u128
NOTE The the most significant byte of the u128 is the most significant byte (left-most byte) of the UUID, and the least significant byte of the u128 is the least significant byte (right-most byte) of the UUID.
Returns a UUID from a given u128
NOTE This encoding is called "inverted" because the the most significant byte of the u128 is the least significant byte (right-most byte) of the UUID and the least significant byte of the u128 is the most significant byte (left-most byte) of the UUID.