-
Notifications
You must be signed in to change notification settings - Fork 2
System.GUID
Dennis G. edited this page Jul 25, 2025
·
6 revisions
type GUID = array(11: PosInt)
constructor GUID(D1: System.UInt32, D2 & D3: System.UInt16, D4: System.UInt64) = \built-in\
converter GUID(Value: any(string, sizeint(False, 128), array(16: System.UInt8))) = \built-in\
The GUID type in the System package is used to store GUIDs in MFL. It is basically a 128-bit integer, stored in an array consisting of one unsigned 32-bit, two unsigned 16-bit and one unsigned 64-bit integer numbers.
System.GUID has a built-in constructor that builds a GUID value from its one 32-, two 16- and one 64-bit unsigned integer components. They are mapped uppon the byte array (the actual GUID) as follows:
| Byte | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
|-------------|---'---'---'---|---'---|---'---|---'---'---'---'---'---'---'---|
| Constructor | D1 | D2 | D3 | D4 |
'-------------'---------------'-------'-------'-------------------------------'
Texts, images and code samples on this page are available under MPL 2.0 license