swapped big- and little-endian definitions around because I'm an idiot