PNG file format endianness?
Im not sure if endian is the right word but.. I have been parsing through a PNG file and I have noticed that all of the integer values are in big endian. Is this true? For example, the width and height are stored in the PNG file as 32bit unsigned integers. My image is 16x16 and in the file its stored as: 00 00 00 10 when it should be: 10 00 00 00 Is this true or is there something I am missing? Yes, according to the specification, integers must be in network byte order (big endian): All integers that require more than one byte shall be in network byte order: the most significant byte comes