Endian Issues

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
lingwitt
Posts: 47
Joined: Mon Jun 19, 2006 9:38 am

Post by lingwitt »

Ah, I think you're right.

Network Byte Order is actually Big Endian. Thus, these methods won't swap bytes on a big endian machine.
lingwitt
Posts: 47
Joined: Mon Jun 19, 2006 9:38 am

Post by lingwitt »

I like the methods like readInt in COgreMeshFileLoader.cpp

We should extend the file readers with such methods, so that endian conversion is done automatically: readIntLE for reading data that is known to be little endian, etc.
Post Reply