View Single Post
Old 03-06-08, 10:11 AM   #416
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Well, almost swdw. I've explained this before. It has to do with the endianness. The id is not wrong, it just is not displayed the same in a hex editor because I read it as a ulong/uint64 (in little endian), not as a 8-byte sequence. Otherwise you would have to say that a 4-byte sequence of 0x01000000 is also wrong if S3D would show it as 1 (int32).

S3D does all it's reading/writing using little endian (read least significant byte first). I won't mix that with big endian. Maybe an option to show id's in big endian is an idea but it's not as simple as it seems. I have (per request) thought of it before but dropped it for the time being as it would involve to many changes in the UI (not just that edit box). I will have to think about that again.

http://en.wikipedia.org/wiki/Endianness
http://developer.apple.com/documenta...eOrdering.html
skwasjer is offline   Reply With Quote