> I was looking at the recently imported uuid interface in libc and
> noticed the encode functions are broken. In particular, this pattern:
>
> uint8_t *p = buf;
> p[0] = htobe32(uuid->time_low);
> p[4] = htobe16(uuid->time_mid);
> p[6] = htobe16(uuid->time_hi_and_version);
Hi,
I was looking at the recently imported uuid interface in libc and
noticed the encode functions are broken. In particular, this pattern:
uint8_t *p = buf;
p[0] = htobe32(uuid->time_low);
p[4] = htobe16(uuid->time_mid);
p[6] = htobe16(uuid->time_hi_and_version);