summaryrefslogtreecommitdiff
path: root/core/io/compression.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/compression.h')
-rw-r--r--core/io/compression.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/io/compression.h b/core/io/compression.h
index 8354b581fa..c103fa8eae 100644
--- a/core/io/compression.h
+++ b/core/io/compression.h
@@ -32,15 +32,16 @@
#define COMPRESSION_H
#include "core/typedefs.h"
+#include "core/vector.h"
class Compression {
-
public:
static int zlib_level;
static int gzip_level;
static int zstd_level;
static bool zstd_long_distance_matching;
static int zstd_window_log_size;
+ static int gzip_chunk;
enum Mode {
MODE_FASTLZ,
@@ -52,8 +53,9 @@ public:
static int compress(uint8_t *p_dst, const uint8_t *p_src, int p_src_size, Mode p_mode = MODE_ZSTD);
static int get_max_compressed_buffer_size(int p_src_size, Mode p_mode = MODE_ZSTD);
static int decompress(uint8_t *p_dst, int p_dst_max_size, const uint8_t *p_src, int p_src_size, Mode p_mode = MODE_ZSTD);
+ static int decompress_dynamic(Vector<uint8_t> *p_dst_vect, int p_max_dst_size, const uint8_t *p_src, int p_src_size, Mode p_mode);
- Compression();
+ Compression() {}
};
#endif // COMPRESSION_H