Footer flags
The flags byte (offset 7) of the footer describes which optional parts the file has.
| Bit | Name | What it means |
|---|---|---|
0x01 |
STATS |
a stats frame exists between the bloom frame and the index frame |
0x02 |
BLOOM_SKIP |
the bloom ends in a skip tail |
0x04 |
BLOOM_RANGES |
the bloom ends in a ranged tail, which also carries skip tags |
0x08 |
BLOCK_COUNTS |
the stats frame carries per-block version codes (stats revision 2) |
How flags decide the layout
Section titled “How flags decide the layout”- The bloom tail layout follows the flags: neither flag is a plain bloom,
SKIPalone is a skip tail,SKIPandRANGEStogether is a ranged tail. - The stats frame has no explicit offset. It exists iff
STATSis set and occupies[bloom_off + bloom_len, index_off). - Which combinations are legal depends on the footer’s
version, see Choosing a footer revision.