Changes

Jump to navigation Jump to search
989 bytes added ,  02:45, 25 August 2009
no edit summary
Line 16: Line 16:     
Maybe a struct, or even a simple description would be nice. Just wondering ;) --[[User:SquidMan|SquidMan]] 06:01, 3 September 2008 (UTC)
 
Maybe a struct, or even a simple description would be nice. Just wondering ;) --[[User:SquidMan|SquidMan]] 06:01, 3 September 2008 (UTC)
 +
 +
:This is my understanding of it: the four bytes starting at 0x4 indicate where the Root File Node is. The next four bytes indicate the total length of the header, which includes this header itself, all of the file nodes, and the string table. The Root Node, as it's "Size", lists in hex the number of total File Nodes. Each file node is 12 bytes. Thus, if the Root node says there are 200 nodes, then the File Nodes, starting at 0x20 and including the root node, take up (200*12) 2400 bytes (0x960). Then the String Table comes up which is the ascii for the folder/filenames separated by '00'. The position of the first byte of each filename is indicated from within each file node (as an offset from the beginning of the string table.) The data portion, which starts after the string table, has its contents indexed by each file node. E.g, if a filenode says 00-000133-00C15480-00800000; the data chunk is 8MB at offset 0xC15480; all the data in the u8 will be defined by the filenodes.
67

edits

Navigation menu