struct big&little endian pack, unpack