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.
Search found 48 matches
- Sat Jul 29, 2006 10:37 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 7307
- Fri Jul 28, 2006 12:14 am
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 7307
- Thu Jul 27, 2006 10:04 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 7307
How about we use POSIX htonl, htons, ntohl, ntohs?
These will be optimized for the platform they're on, I imagine. We can just use our own #defines to change the API.
Perhaps we should take care of endian issues in the reading and writing functions; we can pass flags to the file readers specifying ...
These will be optimized for the platform they're on, I imagine. We can just use our own #defines to change the API.
Perhaps we should take care of endian issues in the reading and writing functions; we can pass flags to the file readers specifying ...
- Mon Jul 24, 2006 7:43 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 7307
Currently, Irrlicht makes liberal use of OSReadSwapInt32 , and its ilk, for BIG_ENDIAN fixes. However, these are a Mac OS X thing, and the functionality is somewhat incomplete, as there is no way to deal with floats and doubles (in fact, a recent addition to Irrlicht uses OSReadSwapFloat32 , which ...
- Mon Jul 24, 2006 6:44 am
- Forum: Open Discussion and Dev Announcements
- Topic: Irrlicht and Speed
- Replies: 19
- Views: 3706
- Sun Jul 23, 2006 5:37 am
- Forum: Open Discussion and Dev Announcements
- Topic: Irrlicht and Speed
- Replies: 19
- Views: 3706
- Fri Jul 21, 2006 4:32 am
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 7307
- Thu Jul 20, 2006 9:54 am
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 7307
- Tue Jul 18, 2006 4:09 am
- Forum: Open Discussion and Dev Announcements
- Topic: A New Line on Newlines
- Replies: 10
- Views: 1855
- Mon Jul 17, 2006 7:58 pm
- Forum: Open Discussion and Dev Announcements
- Topic: A New Line on Newlines
- Replies: 10
- Views: 1855
- Mon Jul 17, 2006 7:57 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 7307
- Mon Jul 17, 2006 10:47 am
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 7307
- Mon Jul 17, 2006 4:50 am
- Forum: Open Discussion and Dev Announcements
- Topic: A New Line on Newlines
- Replies: 10
- Views: 1855
- Sun Jul 16, 2006 9:55 pm
- Forum: Open Discussion and Dev Announcements
- Topic: A New Line on Newlines
- Replies: 10
- Views: 1855
- Sun Jul 16, 2006 9:13 pm
- Forum: Open Discussion and Dev Announcements
- Topic: A New Line on Newlines
- Replies: 10
- Views: 1855
A New Line on Newlines
Does anybody object to making the default line ending for source code the unix line ending, \n?
Please voice your support as well.
Please voice your support as well.