Struct FactorFileFooter

Struct Documentation

struct FactorFileFooter

Binary file footer for factor files with metadata.

Format has changed: footer is now at the END of the file instead of the beginning. This allows writing factors directly without knowing metadata in advance.

File structure: [Factors: array of Factor structs (24 bytes each)] [Optional: sequence names (null-terminated strings)] [Optional: sentinel indices (uint64 array)] [Footer: FactorFileFooter struct]

Public Functions

inline FactorFileFooter()

Public Members

char magic[8]

Format identifier (v2 for footer format)

uint64_t num_factors

Number of factors in file.

uint64_t num_sequences

Number of sequences processed.

uint64_t num_sentinels

Number of sentinel factors.

uint64_t footer_size

Total footer size (bytes from end of file) for extensibility.

uint64_t total_length

Sum of all factor lengths.