Function noLZSS::write_fasta_metadata

Function Documentation

static void noLZSS::write_fasta_metadata(std::ofstream &os, const std::vector<std::string> &sequence_ids, const std::vector<uint64_t> &sentinel_factor_indices, size_t factor_count, uint64_t total_length)

Helper function to write metadata (sequence IDs and sentinel indices) to binary file.

This is called after all factors have been written to the file. It writes the sequence names, sentinel indices, and footer.

Parameters:
  • os – Output stream positioned after all factors

  • sequence_ids – Vector of sequence ID strings

  • sentinel_factor_indices – Vector of sentinel factor indices

  • factor_count – Total number of factors written

  • total_length – Sum of all factor lengths