-rw-r--r-- 177 saferewrite-20241004/src/int64_load_bigendian/ref/load.c raw
#include <stdint.h> #include <string.h> #include <endian.h> int64_t int64_load_bigendian(const unsigned char *s) { int64_t x; memcpy(&x,s,sizeof x); return be64toh(x); }