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.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/core/io/compression.h b/core/io/compression.h
index fc00d02dda..5156919867 100644
--- a/core/io/compression.h
+++ b/core/io/compression.h
@@ -31,23 +31,18 @@
#include "typedefs.h"
-class Compression
-{
+class Compression {
public:
-
enum Mode {
MODE_FASTLZ,
MODE_DEFLATE
};
-
- static int compress(uint8_t *p_dst, const uint8_t *p_src, int p_src_size,Mode p_mode=MODE_FASTLZ);
- static int get_max_compressed_buffer_size(int p_src_size,Mode p_mode=MODE_FASTLZ);
- 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_FASTLZ);
+ static int compress(uint8_t *p_dst, const uint8_t *p_src, int p_src_size, Mode p_mode = MODE_FASTLZ);
+ static int get_max_compressed_buffer_size(int p_src_size, Mode p_mode = MODE_FASTLZ);
+ 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_FASTLZ);
Compression();
};
-
-
#endif // COMPRESSION_H