#pragma scalar_storage_order big-endian //to store in big-endian-format #pragma scalar_storage_order little-endian //to store in little-endian #pragma scalar_storage_order default //to store it in your machines default endianness