iOS requires things to be in little endian format.