ddn.compressor.utils

Compression utility functions.

This module provides common helper functions for compression tasks, including format detection, size estimation, and file convenience helpers.

Format detection and size estimation work purely with format metadata, while file convenience helpers provide simple file-to-file compression and decompression operations using the provider system.

Functions 3

fnsize_t estimateCompressedSize(CompressionFormat fmt, size_t inputSize)Estimate maximum compressed size for given input size.
fnvoid compressFile(string inputPath, string outputPath, CompressionOptions opts = CompressionOptions.init, string providerName = null)Compress a file to another file.
fnvoid decompressFile(string inputPath, string outputPath, DecompressionOptions opts = DecompressionOptions.init, string providerName = null)Decompress a file to another file.