File size: 730 Bytes
2cf2375
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include <string>
#include <vector>
#include <cstdint>
#include <cstddef>

namespace Bestemshe {

class Compressor {
public:
    // Exclusively utilizes ZSTD (Level 19). 
    // Default block size: 33,554,432 bits (4MB packed bytes).
    static void CompressMicroLayer(const std::string& input_raw_path, 
                                   const std::string& output_bin_path, 
                                   size_t block_size = 33554432);

    static std::vector<uint8_t> DecompressMicroLayer(const std::string& input_bin_path,
                                                     size_t bytes_per_block,
                                                     size_t expected_raw_size);
};

} // namespace Bestemshe