Skip to content

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)
  • The bloom tail layout follows the flags: neither flag is a plain bloom, SKIP alone is a skip tail, SKIP and RANGES together is a ranged tail.
  • The stats frame has no explicit offset. It exists iff STATS is set and occupies [bloom_off + bloom_len, index_off).
  • Which combinations are legal depends on the footer’s version, see Choosing a footer revision.