Changes

No change in size ,  09:52, 22 March 2008
one digit makes a difference
Line 32: Line 32:  
For normal files, type is '''0x0000'''. In this case the data_offset gives the address to where the data for this file is. This is given as an absolute offset from the start of the U8 header. The size is the size of the file.
 
For normal files, type is '''0x0000'''. In this case the data_offset gives the address to where the data for this file is. This is given as an absolute offset from the start of the U8 header. The size is the size of the file.
   −
For directories, type is '''0x1000'''. In this case, the data_offset has no meaning. (It seems to be 0 or 1; it might signify the level of recursion even though this is redundant.) The size field is used to indicate which files are included in this directory. The value given is the node number of the last file included, counting the root node as node number 1.  
+
For directories, type is '''0x0100'''. In this case, the data_offset has no meaning. (It seems to be 0 or 1; it might signify the level of recursion even though this is redundant.) The size field is used to indicate which files are included in this directory. The value given is the node number of the last file included, counting the root node as node number 1.  
    
An example: In opening.bnr, there are five nodes:
 
An example: In opening.bnr, there are five nodes: