about summary refs log tree commit diff stats
path: root/archive/2025/summer/bsc_karidas/include/Compression.hpp
blob: 43bc34da92ef4a9b96f36ab50286035d35f4ab46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef COMPRESSION_HPP
#define COMPRESSION_HPP

#include "LogEntry.hpp"
#include <vector>
#include <cstdint>
#include <zlib.h>

class Compression
{
public:
    static std::vector<uint8_t> compress(std::vector<uint8_t> &&data, int level = Z_DEFAULT_COMPRESSION);

    static std::vector<uint8_t> decompress(std::vector<uint8_t> &&compressedData);
};

#endif