Chunk: Difference between revisions
Jump to navigation
Jump to search
(english links please) |
(Super nit-picky, but IFF is big-endian; RIFF is the little-endian version and thus is more similar to the WoW formats.) |
||
Line 1: | Line 1: | ||
*[[WDT]], [[ADT]], [[WMO]], [[WDL]] and Legion+ [[M2/WotLK]] files follow a chunked structure similar to [https://en.wikipedia.org/wiki/ | *[[WDT]], [[ADT]], [[WMO]], [[WDL]] and Legion+ [[M2/WotLK]] files follow a chunked structure similar to [https://en.wikipedia.org/wiki/Resource_Interchange_File_Format RIFF], consisting of chunks of the following format: | ||
struct IffChunk | struct IffChunk |
Revision as of 01:54, 14 March 2016
- WDT, ADT, WMO, WDL and Legion+ M2/WotLK files follow a chunked structure similar to RIFF, consisting of chunks of the following format:
struct IffChunk { uint32_t token; // or "magic" or "identifier" uint32_t size; uint8_t data[size]; };
- The initial chunk in most of these files is an MVER chunk, specifying the version of the files in a 32-bit integer.
- All files use Intel (little-endian) byte order.