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