User Tools

Site Tools


cache_structure

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
cache_structure [2022/11/08 18:38] – [Table] johnsanccache_structure [2022/11/08 19:33] – [Table] johnsanc
Line 6: Line 6:
 ===== RomVault 3.5.x Cache =====  ===== RomVault 3.5.x Cache ===== 
  
-^ Example Offset (h)                    ^ Size (bytes)  ^ Name                 ^ Description                                   ^ Example HEX Values                                                                                ^ Explanation                                              ^+^ Example Offset (h)                    ^ Size (bytes)  ^ Name                  ^ Description                                  ^ Example HEX Values                                                                                ^ Explanation                                              ^
 ^ Header Section                                                                                                                                                                                                                                                                         |||||| ^ Header Section                                                                                                                                                                                                                                                                         ||||||
-| 0x00000000                            | 4             | Cache Version        | Version of the internal cache database        | ''02000000''                                                                                      | Version 2, used with RV 3.5.x                            | +| 0x00000000                            | 4             | Cache Version         | Version of the internal cache database       | ''02000000''                                                                                      | Version 2, used with RV 3.5.x                            | 
-| 0x00000004                            | 4             | File Flags           | Flags for tree and DAT structure              | ''00400400''                                                                                      | Has tree, has children                                   | +| 0x00000004                            | 4             | File Flags            | Flags for tree and DAT structure             | ''00400400''                                                                                      | Has tree, has children                                   | 
-| 0x00000008                            | 1             | File Name            | Length + file name                            | ''00''                                                                                            | Not applicable                                           | +| 0x00000008                            | 1             | File Name             | Length + file name                           | ''00''                                                                                            | Not applicable                                           | 
-| 0x00000009                            | 1             | Found File Name      | Length + found file name                      | ''00''                                                                                            | Not applicable                                           | +| 0x00000009                            | 1             | Found File Name       | Length + found file name                     | ''00''                                                                                            | Not applicable                                           | 
-| 0x0000000A                            | 8             | File Modify Time     | Last modified time in ticks, little endian    | ''0000000000000000''                                                                              | Not applicable                                           | +| 0x0000000A                            | 8             | File Modify Time      | Last modified time in ticks, little endian   | ''0000000000000000''                                                                              | Not applicable                                           | 
-| 0x00000012                            | 1             | DAT Status           | [[#Enums|Flag for DAT status]]                | ''00''                                                                                            | In DAT, collected                                        | +| 0x00000012                            | 1             | DAT Status            | [[#Enums|Flag for DAT status]]               | ''00''                                                                                            | In DAT, collected                                        | 
-| 0x00000013                            | 1             | Got Status           | [[#Enums|Flag for Got status]]                | ''00''                                                                                            | Not Got                                                  | +| 0x00000013                            | 1             | Got Status            | [[#Enums|Flag for Got status]]               | ''00''                                                                                            | Not Got                                                  | 
-| 0x00000014                            | 1             | Tree Expanded        | Boolean flag for directory expanded in tree   | ''01''                                                                                            | Always expanded                                          | +| 0x00000014                            | 1             | Tree Expanded         | Boolean flag for directory expanded in tree  | ''01''                                                                                            | Always expanded                                          | 
-| 0x00000015                            | 1             | Tree Selected        | [[#Enums|Flag for tree selection]]            | ''01''                                                                                            | Always selected                                          | +| 0x00000015                            | 1             | Tree Selected         | [[#Enums|Flag for tree selection]]           | ''01''                                                                                            | Always selected                                          | 
-| 0x00000016                            | 4             | Child Count          | Number of children                            | ''03000000''                                                                                      | 3 directories: RomRoot + 2 ToSorts                       | +| 0x00000016                            | 4             | Child Count           | Number of children                           | ''03000000''                                                                                      | 3 directories: RomRoot + 2 ToSorts                       | 
-| ... (end of cache)                    | 4             | File Status          | Status of the file / group                    | ''00000000''                                                                                      |                                                          |+| ... (end of cache)                    | 4             | File Status           | Status of the file / group                   | ''00000000''                                                                                      |                                                          |
 ^ File Type 1 - Directory without DATs                                                                                                                                                                                                                                                   |||||| ^ File Type 1 - Directory without DATs                                                                                                                                                                                                                                                   ||||||
-| 0x0000001A                            | 1             | Child Type           | [[#Enums|Flag for file type]]                 | ''01''                                                                                            | Directory                                                | +| 0x0000001A                            | 1             | Child Type            | [[#Enums|Flag for file type]]                | ''01''                                                                                            | Directory                                                | 
-| 0x0000001B                            | 4             | File Flags           | Flags for tree and DAT structure              | ''00400400''                                                                                      | Has tree, has children                                   | +| 0x0000001B                            | 4             | File Flags            | Flags for tree and DAT structure             | ''00400400''                                                                                      | Has tree, has children                                   | 
-| 0x0000001F                            | varies        | File Name            | Length + file name                            | ''08526F6D5661756C \\ 74''                                                                        | 8 characters + "RomVault"                                | +| 0x0000001F                            | varies        | File Name             | Length + file name                           | ''08526F6D5661756C \\ 74''                                                                        | 8 characters + "RomVault"                                | 
-| 0x00000028                            | varies        | Found File Name      | Length + found file name                      | ''00''                                                                                            | Not applicable                                           | +| 0x00000028                            | varies        | Found File Name       | Length + found file name                     | ''00''                                                                                            | Not applicable                                           | 
-| 0x00000029                            | 8             | File Modify Time     | Last modified time in ticks, little endian    | ''0000000000000000''                                                                              | Not applicable                                           | +| 0x00000029                            | 8             | File Modify Time      | Last modified time in ticks, little endian   | ''0000000000000000''                                                                              | Not applicable                                           | 
-| 0x00000031                            | 1             | DAT Status           | [[#Enums|Flag for DAT status]]                | ''00''                                                                                            | In DAT, collected                                        | +| 0x00000031                            | 1             | DAT Status            | [[#Enums|Flag for DAT status]]               | ''00''                                                                                            | In DAT, collected                                        | 
-| 0x00000032                            | 1             | Got Status           | [[#Enums|Flag for Got status]]                | ''01''                                                                                            | Got                                                      | +| 0x00000032                            | 1             | Got Status            | [[#Enums|Flag for Got status]]               | ''01''                                                                                            | Got                                                      | 
-| 0x00000033                            | 1             | Tree Expanded        | Boolean flag for directory expanded in tree   | ''01''                                                                                            | Expanded                                                 | +| 0x00000033                            | 1             | Tree Expanded         | Boolean flag for directory expanded in tree  | ''01''                                                                                            | Expanded                                                 | 
-| 0x00000034                            | 1             | Tree Selected        | [[#Enums|Flag for tree selection]]            | ''00''                                                                                            | Not selected                                             | +| 0x00000034                            | 1             | Tree Selected         | [[#Enums|Flag for tree selection]]           | ''00''                                                                                            | Not selected                                             | 
-| 0x00000035                            | 4             | Child Count          | Number of children                            | ''01000000''                                                                                      | 1 child                                                  | +| 0x00000035                            | 4             | Child Count           | Number of children                           | ''01000000''                                                                                      | 1 child                                                  | 
-| ... (end of group)                    | 4             | File Status          | Status of the file / group                    | ''00000000''                                                                                      |                                                          |+| ... (end of group)                    | 4             | File Status           | Status of the file / group                   | ''00000000''                                                                                      |                                                          |
 ^ File Type 1 - Directory with DATs                                                                                                                                                                                                                                                      |||||| ^ File Type 1 - Directory with DATs                                                                                                                                                                                                                                                      ||||||
-| 0x00000039                            | 1             | Child Type           | [[#Enums|Flag for file type]]                 | ''01''                                                                                            | Directory                                                | +| 0x00000039                            | 1             | Child Type            | [[#Enums|Flag for file type]]                | ''01''                                                                                            | Directory                                                | 
-| 0x0000003A                            | 4             | File Flags           | Flags for tree and DAT structure              | ''00400600''                                                                                      | Has tree, has dir DAT, has children                      | +| 0x0000003A                            | 4             | File Flags            | Flags for tree and DAT structure             | ''00400600''                                                                                      | Has tree, has dir DAT, has children                      | 
-| 0x0000003E                            | varies        | File Name            | Length + file name                            | ''034D4941''                                                                                      | 3 characters + "MIA"                                     | +| 0x0000003E                            | varies        | File Name             | Length + file name                           | ''034D4941''                                                                                      | 3 characters + "MIA"                                     | 
-| 0x00000042                            | varies        | Found File Name      | Length + found file name                      | ''00''                                                                                            | Not applicable                                           | +| 0x00000042                            | varies        | Found File Name       | Length + found file name                     | ''00''                                                                                            | Not applicable                                           | 
-| 0x00000043                            | 8             | File Modify Time     | Last modified time in ticks, little endian    | ''0000000000000000''                                                                              | Not applicable                                           | +| 0x00000043                            | 8             | File Modify Time      | Last modified time in ticks, little endian   | ''0000000000000000''                                                                              | Not applicable                                           | 
-| 0x0000004B                            | 1             | DAT Status           | [[#Enums|Flag for DAT status]]                | ''00''                                                                                            | In DAT, collected                                        | +| 0x0000004B                            | 1             | DAT Status            | [[#Enums|Flag for DAT status]]               | ''00''                                                                                            | In DAT, collected                                        | 
-| 0x0000004C                            | 1             | Got Status           | [[#Enums|Flag for Got status]]                | ''01''                                                                                            | Got                                                      | +| 0x0000004C                            | 1             | Got Status            | [[#Enums|Flag for Got status]]               | ''01''                                                                                            | Got                                                      | 
-| 0x0000004D                            | 1             | Tree Expanded        | Boolean flag for directory expanded in tree   | ''01''                                                                                            | Expanded                                                 | +| 0x0000004D                            | 1             | Tree Expanded         | Boolean flag for directory expanded in tree  | ''01''                                                                                            | Expanded                                                 | 
-| 0x0000004E                            | 1             | Tree Selected        | [[#Enums|Flag for tree selection]]            | ''00''                                                                                            | Not selected                                             | +| 0x0000004E                            | 1             | Tree Selected         | [[#Enums|Flag for tree selection]]           | ''00''                                                                                            | Not selected                                             | 
-| 0x0000004F                            | 4             | DAT Count            | Number of DATs in the directory               | ''02000000''                                                                                      | 2 DATs                                                   | +| 0x0000004F                            | 4             | DAT Count             | Number of DATs in the directory              | ''02000000''                                                                                      | 2 DATs                                                   | 
-| 0x00000053                            | 8             | DAT Modify Time      | Last modified time in ticks, little endian    | ''0016C6FEFDC0DA08''                                                                              | 638034494360000000 ticks                                 | +| 0x00000053                            | 8             | DAT Modify Time       | Last modified time in ticks, little endian   | ''0016C6FEFDC0DA08''                                                                              | 638034494360000000 ticks                                 | 
-| 0x0000005B                            | 1             | DAT Rules            | Flags for DAT rules applied                   | ''05''                                                                                            | AutoAddDirectory, MultiDatOverride                       | +| 0x0000005B                            | 1             | DAT Rules             | Flags for DAT rules applied                  | ''05''                                                                                            | AutoAddDirectory, MultiDatOverride                       | 
-| 0x0000005C                            | 1             | DAT Attribute Count  | Number of DAT attributes                      | ''07''                                                                                            | 7 attributes                                             | +| 0x0000005C                            | 1             | DAT Attribute Count   | Number of DAT attributes                     | ''07''                                                                                            | 7 attributes                                             | 
-| 0x0000005D                            | 1             | DAT Attribute ID     | [[#Enums|Flag for Dat attribute]]             | ''01''                                                                                            | DatName                                                  | +| 0x0000005D                            | 1             | DAT Attribute ID      | [[#Enums|Flag for Dat attribute]]            | ''01''                                                                                            | DatName                                                  | 
-| 0x0000005E                            | varies        | DAT Attribute Value  | Length + attribute value                      | ''094D616D6D61204D \\ 4941''                                                                      | 9 characters + "Mamma MIA"                               | +| 0x0000005E                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''094D616D6D61204D \\ 4941''                                                                      | 9 characters + "Mamma MIA"                               | 
-| 0x00000068                            | 1             | DAT Attribute ID     | [[#Enums|Flag for Dat attribute]]             | ''02''                                                                                            | DatRootFullName                                          | +| 0x00000068                            | 1             | DAT Attribute ID      | [[#Enums|Flag for Dat attribute]]            | ''02''                                                                                            | DatRootFullName                                          | 
-| 0x00000069                            | varies        | DAT Attribute Value  | Length + attribute value                      | ''19446174526F6F74 \\ 5C4D49415C4D616D \\ 6D612D4D49412E64 \\ 6174''                              | 19 characters + "DatRoot\MIA\Mamma-MIA.dat"              | +| 0x00000069                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''19446174526F6F74 \\ 5C4D49415C4D616D \\ 6D612D4D49412E64 \\ 6174''                              | 19 characters + "DatRoot\MIA\Mamma-MIA.dat"              | 
-| 0x00000083                            | 1             | DAT Attribute ID     | [[#Enums|Flag for Dat attribute]]             | ''03''                                                                                            | RootDir                                                  | +| 0x00000083                            | 1             | DAT Attribute ID      | [[#Enums|Flag for Dat attribute]]            | ''03''                                                                                            | RootDir                                                  | 
-| 0x00000084                            | varies        | DAT Attribute Value  | Length + attribute value                      | ''094D616D6D612D4D \\ 4941''                                                                      | 9 characters + "Mamma-MIA"                               | +| 0x00000084                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''094D616D6D612D4D \\ 4941''                                                                      | 9 characters + "Mamma-MIA"                               | 
-| 0x0000008E                            | 1             | DAT Attribute ID     | [[#Enums|Flag for Dat attribute]]             | ''04''                                                                                            | Description                                              | +| 0x0000008E                            | 1             | DAT Attribute ID      | [[#Enums|Flag for Dat attribute]]            | ''04''                                                                                            | Description                                              | 
-| 0x0000008F                            | varies        | DAT Attribute Value  | Length + attribute value                      | ''1C496E2074686520 \\ 4441542D4D697373 \\ 696E6720696E2041 \\ 6374696F6E''                        | 28 characters + "In the DAT-Missing in Action"           | +| 0x0000008F                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''1C496E2074686520 \\ 4441542D4D697373 \\ 696E6720696E2041 \\ 6374696F6E''                        | 28 characters + "In the DAT-Missing in Action"           | 
-| 0x000000AC                            | 1             | DAT Attribute ID     | [[#Enums|Flag for Dat attribute]]             | ''06''                                                                                            | Version                                                  | +| 0x000000AC                            | 1             | DAT Attribute ID      | [[#Enums|Flag for Dat attribute]]            | ''06''                                                                                            | Version                                                  | 
-| 0x000000AD                            | varies        | DAT Attribute Value  | Length + attribute value                      | ''034D4941''                                                                                      | 3 characters + "MIA"                                     | +| 0x000000AD                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''034D4941''                                                                                      | 3 characters + "MIA"                                     | 
-| 0x000000B1                            | 1             | DAT Attribute ID     | [[#Enums|Flag for Dat attribute]]             | ''08''                                                                                            | Author                                                   | +| 0x000000B1                            | 1             | DAT Attribute ID      | [[#Enums|Flag for Dat attribute]]            | ''08''                                                                                            | Author                                                   | 
-| 0x000000B2                            | varies        | DAT Attribute Value  | Length + attribute value                      | ''084461745661756C \\ 74''                                                                        | 8 characters + "DatVault"                                | +| 0x000000B2                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''084461745661756C \\ 74''                                                                        | 8 characters + "DatVault"                                | 
-| 0x000000BB                            | 1             | DAT Attribute ID     | [[#Enums|Flag for Dat attribute]]             | ''0B''                                                                                            | URL                                                      | +| 0x000000BB                            | 1             | DAT Attribute ID      | [[#Enums|Flag for Dat attribute]]            | ''0B''                                                                                            | URL                                                      | 
-| 0x000000BC                            | varies        | DAT Attribute Value  | Length + attribute value                      | ''107777772E646174 \\ 7661756C742E636F \\ 6D''                                                    | 10 characters + "www.datvault.com"                       | +| 0x000000BC                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''107777772E646174 \\ 7661756C742E636F \\ 6D''                                                    | 10 characters + "www.datvault.com"                       | 
-| 0x000000CD                            | 4             | Child Count                                                        | ''4E000000''                                                                                      | 78 children                                              |+| 0x000000CD                            | 4             | Child Count                                                        | ''4E000000''                                                                                      | 78 children                                              |
 ^ File Type 1 - Directory within a DAT                                                                                                                                                                                                                                                   |||||| ^ File Type 1 - Directory within a DAT                                                                                                                                                                                                                                                   ||||||
-| 0x000000D1                            | 1             | Child Type           | [[#Enums|Flag for file type]]                 | ''01''                                                                                            | Directory                                                | +| 0x000000D1                            | 1             | Child Type            | [[#Enums|Flag for file type]]                | ''01''                                                                                            | Directory                                                | 
-| 0x000000D2                            | 4             | File Flags           | Flags for tree and DAT structure              | ''00400600''                                                                                      | Has tree, has dir DAT, has children                      | +| 0x000000D2                            | 4             | File Flags            | Flags for tree and DAT structure             | ''00400600''                                                                                      | Has tree, has dir DAT, has children                      | 
-| 0x000000D6                            | varies        | File Name            | Length + file name                            | ''25456D754172632D \\ 436F6D6D6F646F72 \\ 65203634202D2043 \\ 442D524F4D2C2044 \\ 56442D524F4D''  | 37 characters + "EmuArc-Commodore 64 - CD-ROM, DVD-ROM" +| 0x000000D6                            | varies        | File Name             | Length + file name                           | ''25456D754172632D \\ 436F6D6D6F646F72 \\ 65203634202D2043 \\ 442D524F4D2C2044 \\ 56442D524F4D''  | 37 characters + "EmuArc-Commodore 64 - CD-ROM, DVD-ROM" 
-| 0x000000FC                            | varies        | Found File Name      | Length + found file name                      | ''00''                                                                                            | Not applicable                                           | +| 0x000000FC                            | varies        | Found File Name       | Length + found file name                     | ''00''                                                                                            | Not applicable                                           | 
-| 0x000000FD                            | 8             | File Modify Time     | Last modified time in ticks, little endian    | ''0000000000000000''                                                                              | Not applicable                                           | +| 0x000000FD                            | 8             | File Modify Time      | Last modified time in ticks, little endian   | ''0000000000000000''                                                                              | Not applicable                                           | 
-| 0x00000105                            | 4             | DAT Index            | Index number                                  | ''00000000''                                                                                      | Index 0                                                  | +| 0x00000105                            | 4             | DAT Index             | Index number                                 | ''00000000''                                                                                      | Index 0                                                  | 
-| 0x00000109                            | 1             | DAT Status           | [[#Enums|Flag for DAT status]]                | ''00''                                                                                            | In DAT, collect                                          | +| 0x00000109                            | 1             | DAT Status            | [[#Enums|Flag for DAT status]]               | ''00''                                                                                            | In DAT, collect                                          | 
-| 0x0000010A                            | 1             | Got Status           | [[#Enums|Flag for Got status]]                | ''00''                                                                                            | Not Got                                                  | +| 0x0000010A                            | 1             | Got Status            | [[#Enums|Flag for Got status]]               | ''00''                                                                                            | Not Got                                                  | 
-| 0x0000010B                            | 1             | Tree Expanded        | Boolean flag for directory expanded in tree   | ''01''                                                                                            | Expanded                                                 | +| 0x0000010B                            | 1             | Tree Expanded         | Boolean flag for directory expanded in tree  | ''01''                                                                                            | Expanded                                                 | 
-| 0x0000010C                            | 1             | Tree Selected        | [[#Enums|Flag for tree selection]]            | ''00''                                                                                            | Not selected                                             | +| 0x0000010C                            | 1             | Tree Selected         | [[#Enums|Flag for tree selection]]           | ''00''                                                                                            | Not selected                                             | 
-| 0x0000010D                            | 4             | Child Count          | Number of DATs in the directory               | ''01000000''                                                                                      | 1 child of the directory                                 | +| 0x0000010D                            | 4             | Child Count           | Number of DATs in the directory              | ''01000000''                                                                                      | 1 child of the directory                                 | 
-ToSort Directory                                                                                                                                                                                                                                                                  +^ File Type 2 - ZIP Archive                                                                                                                                                                                                                                                              |||||| 
-0x00000000                            | 1             ???                                                                | ''00''                                                                                            |                                                          +| 0x00000111                            | 1             | Child Type            | [[#Enums|Flag for file type]]                | ''02''                                                                                            | ZIP archive                                              
-0x00000001                            | 1             File Type            | [[#Enums|Flag for file type]]                 | ''01''                                                                                            | Directory                                                +0x00000112                            | 4             | File Flags            | Flags for tree and DAT structure             | ''00800500''                                                                                      | Has game, has DAT, has children                          | 
-                                                  | Cache Read Flags                                                   | ''00400000''                                                                                                                                               +| 0x00000116                            | varies        | File Name             | Length + file name                           | ''1E54686520434420 \\ 47616D6573205061 \\ 636B20284575726F \\ 7065292E7A6970''                    | 30 characters + "The CD Games Pack (Europe).zip"         | 
-                                      varies        Path Name Length     | Number of characters in path                  | ''0A''                                                                                            | 10 characters                                            +| 0x00000135                            | varies        | Found File Name       | Length + found file name                     | ''00''                                                                                            | Not applicable                                           | 
-                                      | varies        | Path Name            Path as displayed in RomVault UI              | ''583A5C546F536F72 \\ 7432''                                                                      X:\ToSort2                                               +| 0x00000136                            | 8             | File Modify Time      | Last modified time in ticks, little endian   | ''0000000000000000''                                                                              | Not applicable                                           | 
-^ File Record (Non-Archive File)                                                                                                                                                                                                                                                         |||||| +| 0x0000013E                            | 4             | DAT Index             | Index number                                 | ''00000000''                                                                                      | Index 0                                                  | 
-0x00000000                            | 1             File Type            | [[#Enums|Flag for file type]]                 | ''04''                                                                                            | File                                                     +| 0x00000142                            | 1             DAT Status            [[#Enums|Flag for DAT status]]               | ''00''                                                                                            | In DAT, collect                                          
-0x00000020                            | 4             Cache Read Flags                                                   | ''0F000000''                                                                                      |                                                          +0x00000143                            | 1             Got Status            | [[#Enums|Flag for Got status]]               | ''00''                                                                                            | Not Got                                                  
-                                      | varies        | File Name Length     | Number of characters in filename              | ''0D''                                                                                            13 characters                                            +0x00000144                                        | ZIP Status            [[#Enums|Flag for ZIP status]]               | ''00''                                                                                            None                                                     
-                                      | varies        | File Name            File name without directory                   | ''544553545F46494C \\ 452E62696E''                                                                | TEST_FILE.bin                                            | +0x00000145                            1             Game Attribute Count  | Number of game attributes                    | ''01''                                                                                            | 1 attribute                                              
-|                                       | 1             | Case Alternate       | Flag for a case sensitive filename alternate  | ''00''                                                                                            |                                                          +0x00000146                            | 1             | Game Attribute ID     | [[#Enums|Flag for Game attribute]]           | ''01''                                                                                            | Description                                              | 
-                                      | 8             Modified Time        | Last modified time in ticks, little endian    | ''5E2442FB4DBFDA08''                                                                              | 638032638875149406 ticks                                 | +| 0x00000147                            | varies        | Game Attribute Value  Length + attribute value                     | ''1A54686520434420 \\ 47616D6573205061 \\ 636B20284575726F \\ 706529''                            26 characters + "The CD Games Pack (Europe)"             | 
-                                      | 1             | DAT Status           | [[#Enums|Flag for DAT status]]                | ''04''                                                                                            | In ToSort directory                                      +| 0x00000162                            | 4             | Child Count           | Number of children                           | ''25000000''                                                                                      | 37 children                                              
-                                      | 1             | Got Status           | [[#Enums|Flag for Got status]]                | ''01''                                                                                            | Got                                                      +^ File Type 5 - File In ZIP                                                                                                                                                                                                                                                              |||||| 
-                                      | 8             File Size            | File size in bytes, little endian             | ''C20B000000000000''                                                                              | 3010 bytes                                               +0x00000166                            | 1             Child Type            | [[#Enums|Flag for file type]]                | ''02''                                                                                            | File in ZIP                                              
-                                                  | CRC Bytes            | CRC32 length in bytes                         | ''04''                                                                                            | 4 bytes                                                  | +0x00000167                            | 4             File Flags            Flags for tree and DAT structure             | ''0F000100''                                                                                      | Size, CRC, SHA1, MD5, HasDat                             
-|                                       | 4             | CRC Hash             CRC32 hash value                              | ''5591DB24''                                                                                      |                                                          | +0x0000016B                            | varies        | File Name             | Length + file name                           | ''125363616E732F64 \\ 736330303133392E \\ 6A7067''                                                18 characters + "Scans/dsc00139.jpg"                     
-|                                       | 1             | SHA1 Bytes           | SHA1 length in bytes                          | ''14''                                                                                            20 bytes                                                 +0x0000017E                            | varies        | Found File Name       Length + found file name                     | ''00''                                                                                            | Not applicable                                           
-                                      20            | SHA1 Hash            | SHA1 hash value                               | ''470999CECB44DA4B \\ DAA37B634BA8E00B \\ A60DB123''                                              |                                                          +0x0000017F                            | 8             File Modify Time      | Last modified time in ticks, little endian   | ''0000000000000000''                                                                              | Not applicable                                           | 
-                                      | 1             | MD5 Bytes            | MD5 length in bytes                           | ''10''                                                                                            | 16 bytes                                                 | +| 0x00000187                            | 4             | DAT Index             | Index number                                 | ''00000000''                                                                                      | Index 0                                                  
-|                                       | 16            | MD5 Hash             | MD5 hash value                                | ''6D791EFEA71E0A2A \\ 46F3C1672A34274B''                                                                                                                   +0x0000018B                            | 1             | DAT Status            | [[#Enums|Flag for DAT status]]               | ''05''                                                                                            | In DAT, MIA                                              
-                                      | 1             | Header Found         | [[#Enums|Flag for type of header found]]      | ''00''                                                                                            | None                                                     | +0x0000018C                            | 1             | Got Status            | [[#Enums|Flag for Got status]]               | ''00''                                                                                            | Not Got                                                  
-|                                       | 4             | File Status          | Flags for file status                         | ''003C0000''                                                                                      |                                                          |+0x0000018D                            | 8             | Size                  | File size in bytes                           | ''0ECB470000000000''                                                                              | 4705038 bytes                                            
 +0x00000195                                        | CRC                   | Bytes CRC32  hash                          | ''04CD81D84C''                                                                                    "04" + CRC32                                             
 +0x0000019A                            21            | SHA1                  Bytes + SHA1 hash                            | ''207FF61CFF0659DE \\ E1F269C7E3A2E18B \\ 9567979F84''                                            | "21" + SHA1                                              | 
 +0x000001AF                            | 16            | MD5                   Bytes + MD5 hash                             | ''16D491169D7CB4DA \\ 414208465B0027BD \\ 21''                                                    "16 + MD5                                                
 +0x000001C0                            | 4             | File Status           | Flags for file status                        | ''1E000000''                                                                                      | SizeFromDAT, CRCFromDAT, SHA1FromDAT, MD5FromDAT         |
 ^ Footer                                                                                                                                                                                                                                                                                 |||||| ^ Footer                                                                                                                                                                                                                                                                                 ||||||
-| 0x00000000                            | 11            | ???                                                                | ''000000000000C000 \\ 000000''                                                                    |                                                          | +| 0x00000000                            | 11            | ???                                                                | ''000000000000C000 \\ 000000''                                                                    |                                                          | 
-|                                       | 8             | End Cache            | Marker to signify the end of the cache        | ''A7DD00A615000000''                                                                              |                                                          |+|                                       | 8             | End Cache             | Marker to signify the end of the cache       | ''A7DD00A615000000''                                                                              |                                                          |
  
  
Line 104: Line 108:
  
 ^ Enum            ^ Name             ^ Description                                      ^ Cache Value  ^ ^ Enum            ^ Name             ^ Description                                      ^ Cache Value  ^
-| TreeSelect      | Unselected       | The tree branch is selected                      | ''00''       | 
-| :::             | Selected         | The tree branch is unselected                    | ''01''       | 
-| :::             | Locked           | The tree branch is locked in read-only mode      | ''02''       | 
-| FileType        | Unknown          | ???                                              | ''00''       | 
-| :::             | Dir              | The item is a directory                          | ''01''       | 
-| :::             | Zip              | The item is a ZIP file                           | ''02''       | 
-| :::             | SevenZip         | The item is a 7z file                            | ''03''       | 
-| :::             | File             | The item is a file                               | ''04''       | 
-| :::             | ZipFile          | The item is a file within a ZIP archive          | ''05''       | 
-| :::             | SevenZipFile     | The item is a file within a 7z archive           | ''06''       | 
 | DatData         | DatName          | DAT header: ''<name>'' tag                       | ''01''       | | DatData         | DatName          | DAT header: ''<name>'' tag                       | ''01''       |
 | :::             | DatRootFullName  | Full DATRoot path with DAT filename              | ''02''       | | :::             | DatRootFullName  | Full DATRoot path with DAT filename              | ''02''       |
Line 137: Line 131:
 | :::             | InToSort         | The file is in a ToSort directory                | ''04''       | | :::             | InToSort         | The file is in a ToSort directory                | ''04''       |
 | :::             | InDatMIA         | The file is in the DAT but MIA                   | ''05''       | | :::             | InDatMIA         | The file is in the DAT but MIA                   | ''05''       |
 +| FileType        | Unknown          | ???                                              | ''00''       |
 +| :::             | Dir              | The item is a directory                          | ''01''       |
 +| :::             | Zip              | The item is a ZIP file                           | ''02''       |
 +| :::             | SevenZip         | The item is a 7z file                            | ''03''       |
 +| :::             | File             | The item is a file                               | ''04''       |
 +| :::             | ZipFile          | The item is a file within a ZIP archive          | ''05''       |
 +| :::             | SevenZipFile     | The item is a file within a 7z archive           | ''06''       |
 | GotStatus       | NotGot           | The file is missing                              | ''00''       | | GotStatus       | NotGot           | The file is missing                              | ''00''       |
 | :::             | Got              | The file is present                              | ''01''       | | :::             | Got              | The file is present                              | ''01''       |
Line 157: Line 158:
 | :::             | HeaderMask       | ???                                              |              | | :::             | HeaderMask       | ???                                              |              |
 | :::             | Required         | ???                                              |              | | :::             | Required         | ???                                              |              |
 +| TreeSelect      | Unselected       | The tree branch is selected                      | ''00''       |
 +| :::             | Selected         | The tree branch is unselected                    | ''01''       |
 +| :::             | Locked           | The tree branch is locked in read-only mode      | ''02''       |
 +| ZipStatus       | None             | ???                                              | ''00''       |
 +| :::             | TrrntZip         | TorrentZip or RV7Z                               | ''01''       |
 +| :::             | ExtraData        | ???                                              | ''02''       |
 +| :::             | Trrnt7Zip        | Torrent7Zip                                      | ''03''       |
  
  
cache_structure.txt · Last modified: 2022/11/24 14:30 by johnsanc