MCPcopy Create free account
hub / github.com/F-Stack/f-stack / le_uuid_enc

Function le_uuid_enc

freebsd/kern/kern_uuid.c:320–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 */
319
320void
321le_uuid_enc(void *buf, struct uuid const *uuid)
322{
323 u_char *p;
324 int i;
325
326 p = buf;
327 le32enc(p, uuid->time_low);
328 le16enc(p + 4, uuid->time_mid);
329 le16enc(p + 6, uuid->time_hi_and_version);
330 p[8] = uuid->clock_seq_hi_and_reserved;
331 p[9] = uuid->clock_seq_low;
332 for (i = 0; i < _UUID_NODE_LEN; i++)
333 p[10 + i] = uuid->node[i];
334}
335
336void
337le_uuid_dec(void const *buf, struct uuid *uuid)

Callers

nothing calls this directly

Calls 2

le32encFunction · 0.85
le16encFunction · 0.85

Tested by

no test coverage detected