This can also be written in an endian independent manner.