/* ISC license. */ #include #include #include void uint16_pack (char *s, uint16_t u) { ((unsigned char *)s)[0] = T8(u) ; u >>= 8 ; ((unsigned char *)s)[1] = T8(u) ; }