Function noLZSS::write_factors_binary_file
Defined in File factorizer.cpp
Function Documentation
-
size_t noLZSS::write_factors_binary_file(const std::string &in_path, const std::string &out_path)
Writes noLZSS factors from a file to a binary output file.
This function reads text from an input file, performs factorization, and writes the resulting factors in binary format to an output file. Each factor is written as two uint64_t values (start position, length).
Reads text from an input file, performs factorization, and writes the factors in binary format to an output file. This is useful for storing factorizations efficiently or for further processing.
Note
Binary format: each factor is 24 bytes (3 × uint64_t: start, length, ref)
Note
This function overwrites the output file if it exists
Warning
Ensure sufficient disk space for the output file
Note
Binary format: each factor is written as two uint64_t values (start, length)
Warning
This function overwrites the output file if it exists
- Parameters:
in_path – Path to input file containing text
out_path – Path to output file where binary factors will be written
in_path – Path to input file containing text
out_path – Path to output file where binary factors will be written
- Returns:
Number of factors written to the output file
- Returns:
Number of factors written to the output file