Note: The data in the data file starts at the position indicated in bytes 8 to 9 of the header record. Data records begin with a delete flag byte. If this byte is an ASCII space (0x20), the record is not deleted. If the first byte is an asterisk (0x2A), the record is deleted. The data from the fields named in the field subrecords follows the delete flag.
The length of a record, in bytes, is determined by summing the defined lengths of all fields. Integers in table files are stored with the least significant byte first.
Byte offset | Description |
0 | File type:
|
1 - 3 | Last update (YYMMDD) |
4 – 7 | Number of records in file |
8 – 9 | Position of first data record |
10 – 11 | Length of one data record, including delete flag |
12 – 27 | Reserved |
28 | Table flags:
|
29 | Code page mark |
30 – 31 | Reserved, contains 0x00 |
32 – n | Field subrecords The number of fields determines the number of field subrecords. One field subrecord exists for each field in the table. |
n+1 | Header record terminator (0x0D) |
n+2 to n+264 | A 263-byte range that contains the backlink, which is the relative path of an associated database (.dbc) file, information. If the first byte is 0x00, the file is not associated with a database. Therefore, database files always contain 0x00. |
Byte offset | Description |
0 – 10 | Field name with a maximum of 10 characters. If less than 10, it is padded with null characters (0x00). |
11 | Field type:
|
12 – 15 | Displacement of field in record |
16 | Length of field (in bytes) |
17 | Number of decimal places |
18 | Field flags:
|
19 - 22 | Value of autoincrement Next value |
23 | Value of autoincrement Step value |
24 – 31 | Reserved |