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

Function be_uuid_dec

freebsd/kern/kern_uuid.c:368–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void
369be_uuid_dec(void const *buf, struct uuid *uuid)
370{
371 u_char const *p;
372 int i;
373
374 p = buf;
375 uuid->time_low = be32dec(p);
376 uuid->time_mid = be16dec(p + 4);
377 uuid->time_hi_and_version = be16dec(p + 6);
378 uuid->clock_seq_hi_and_reserved = p[8];
379 uuid->clock_seq_low = p[9];
380 for (i = 0; i < _UUID_NODE_LEN; i++)
381 uuid->node[i] = p[10 + i];
382}
383
384int
385validate_uuid(const char *str, size_t size, struct uuid *uuid, int flags)

Callers

nothing calls this directly

Calls 2

be32decFunction · 0.85
be16decFunction · 0.85

Tested by

no test coverage detected