-
Notifications
You must be signed in to change notification settings - Fork 2
Index table
The Index table contains a list of each of the files/blobs in this DBPF archive. The DBPF header contains the (major/minor) version, the location, size and number of records in this table. Depending on the version, each record may be one of three different types:
<index(7.0)<TGI<type:4><group:4><instance:4>:12><offset:4><size:4>:20>
Version 7.0 contains the standard 3*4 byte TGI along with the location and size of the file.
<index(7.1)<TGII<type:4><group:4><instance:4><EIID:4>:16><offset:4><size:4>:24>
Version 7.1 added the Extended Instance ID EIID
which allows for significantly larger numbers of blobs
<index(7.3)<entry:4><IDs[4]:4><offest:4><size:4><fullsize:4><flags:2><0x0001:2>:36>
Version 7.3 significantly reworked the record to allow for partial records. It also merged in the DIR table file into the main index table. It only appears in DBPF v2 files used by SPORE. It is located at header.index_offest_v2
rather than header.index.offset
.