|
Demand Index Header
The first 128 bytes of the index are as follows:
All values are given in decimal unless preceded
with "0x" for hexadecimal
| offset |
length |
contents |
| 0 |
2 |
"0xC931" - filePro
index magic number |
| 2 |
16 |
The filePro file name |
| 18 |
64 |
Sort information -- see
below |
| 82 |
2 |
Index record length -- see
below |
| 84 |
1 |
"0" - A demand
index |
| 85 |
1 |
"1" - internal
flags |
| 86 |
4 |
"0" - Used in
automatic indexes only |
| 90 |
4 |
"0" - Used in
automatic indexes only |
| 94 |
4 |
Number of records in the
index |
| 98 |
30 |
"0" - reserved |
|

Sort Information
The sort information is the following 8 bytes
repeated 8 times - once for each possible sort key.
| Offset |
Length |
Contents |
| 0 |
2 |
The field number |
| 2 |
1 |
Associated field instance |
| 3 |
1 |
"0" - Used for output formats
only |
| 4 |
2 |
Field length |
| 6 |
1 |
"0" for ascending, "1" for
descending |
| 7 |
1 |
Field type |
|

Index Record Length
Starting at the 129th byte is an entry for each
record in the index:
| Offset |
Length |
Contents |
| 0 |
n |
The first key |
| . |
m |
The second key |
| . |
. |
... |
| . |
1 |
Associated field instance
for the first key |
| . |
1 |
Associated field instance
for the second key |
| . |
. |
... |
| . |
4 |
The record number |
|
|