/* ISC license. */ #include #include #include void uint16_pack (char *s, uint16_t u) { u = uint16_little(u) ; memcpy(s, &u, sizeof(uint16_t)) ; }