/* 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 . */ /* 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 "#\n", ; } };