Lines Matching defs:uuid
30 __FBSDID("$FreeBSD: releng/11.0/lib/libc/uuid/uuid_stream.c 181743 2008-08-14 22:23:16Z emax $");
33 #include <uuid.h>
56 uuid_enc_le(void *buf, const uuid_t *uuid)
61 le32enc(p, uuid->time_low);
62 le16enc(p + 4, uuid->time_mid);
63 le16enc(p + 6, uuid->time_hi_and_version);
64 p[8] = uuid->clock_seq_hi_and_reserved;
65 p[9] = uuid->clock_seq_low;
67 p[10 + i] = uuid->node[i];
71 uuid_dec_le(const void *buf, uuid_t *uuid)
76 uuid->time_low = le32dec(p);
77 uuid->time_mid = le16dec(p + 4);
78 uuid->time_hi_and_version = le16dec(p + 6);
79 uuid->clock_seq_hi_and_reserved = p[8];
80 uuid->clock_seq_low = p[9];
82 uuid->node[i] = p[10 + i];
86 uuid_enc_be(void *buf, const uuid_t *uuid)
91 be32enc(p, uuid->time_low);
92 be16enc(p + 4, uuid->time_mid);
93 be16enc(p + 6, uuid->time_hi_and_version);
94 p[8] = uuid->clock_seq_hi_and_reserved;
95 p[9] = uuid->clock_seq_low;
97 p[10 + i] = uuid->node[i];
101 uuid_dec_be(const void *buf, uuid_t *uuid)
106 uuid->time_low = be32dec(p);
107 uuid->time_mid = be16dec(p + 4);
108 uuid->time_hi_and_version = be16dec(p + 6);
109 uuid->clock_seq_hi_and_reserved = p[8];
110 uuid->clock_seq_low = p[9];
112 uuid->node[i] = p[10 + i];