src/core/Compress.h
Compress [Module]
Description
The Compress module provides high-level interfaces for file compression, utilizing the
Byte Pair Encoding (BPE) algorithm.
Functions
int BPE_compress(const std::string &inputPath, const std::string &outputPath)
Compresses a file using BPE algorithm and writes the result to disk.
Parameters
- inputPath: Path to the source file (e.g., XML).
- outputPath: Path where the compressed binary file will be saved.
Integer status code (0 usually indicates success).