#include #include #include uint16_t uint16_load(const unsigned char *s) { uint16_t x; memcpy(&x,s,sizeof x); return le16toh(x); }