Short answer
A processor stores multi-byte numbers in a particular order. If that order is misread, the values look meaningless, and some reading tools may save a file with a different byte order.
Detailed answer
A 16-bit value is stored in two bytes. Some processors write the low-order byte first and others the high-order byte first, known as little endian and big endian. If inspection software has the wrong order selected, numbers look absurd.
Two copies of a file can carry the same content yet have their bytes swapped in pairs. Such a difference gives the impression in a crude comparison that the files are entirely different.
Keep this possibility in mind when comparing a file with a layout you know. A file with a different byte order should not be written until it has been converted to the required form.
Last updated: