#include #include #include void uint64_store_bigendian(unsigned char *s,uint64_t x) { x = htobe64(x); memcpy(s,&x,sizeof x); }