PAK files and endianness
#1
I have just realized, when trying to update the information on PAK format in the wiki, that there's a fundamental flaw in the format design. It doesn't take endianness into account at all. When reading and writing the number of chunks and the chunk header, no endianness conversions are performed, meaning that a file saved on one platform is unusable on another platform.

Traditionally, MCServer has been used on Intel, so we probably could declare that it uses little-endian formatting, and fix the code to that. What do you think?
Reply
Thanks given by:


Messages In This Thread
PAK files and endianness - by xoft - 06-10-2012, 08:53 PM
RE: PAK files and endianness - by Luksor - 06-10-2012, 09:04 PM
RE: PAK files and endianness - by FakeTruth - 06-10-2012, 09:13 PM
RE: PAK files and endianness - by xoft - 06-10-2012, 09:14 PM
RE: PAK files and endianness - by FakeTruth - 06-10-2012, 09:16 PM
RE: PAK files and endianness - by xoft - 06-10-2012, 09:24 PM
RE: PAK files and endianness - by FakeTruth - 06-10-2012, 10:31 PM
RE: PAK files and endianness - by Luksor - 06-10-2012, 09:27 PM



Users browsing this thread: 5 Guest(s)