blob: bf3ba9556430d651ba42a648efc4fe9977920753 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* uuid.pk - Universally Unique IDentifier (UUID) as defined by RFC4122. */
/* Copyright (C) 2022 The poke authors */
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* A Universally Unique IDentifier also known as GUIDs (Globally Unique
* IDentifier).
* A UUID is 128 bits long, and requires no central registration process.
*/
/* set_endian (ENDIAN_BIG); */
type UUID =
struct
{
uint8[4] time_low;
uint8[2] time_mid;
uint8[2] time_hi_and_version;
uint8 clock_seq_hi_and_reserved;
uint8 clock_seq_low;
uint8[6] node;
method _print = void:
{
printf "#<UUID=%i02x>\n",
;
}
};
|
.
.
If you have reason to request commit access to one of these repositories please
.
You may also send me patches by email.