Take care of the endianness of data.
Compress unsigned integers.