pandemonium_engine/modules/lz4/lz4_compressor.h

29 lines
704 B
C++
Raw Normal View History

2022-11-19 19:39:50 +01:00
#ifndef LZ4_COMPRESSOR_H
#define LZ4_COMPRESSOR_H
#include "core/object/reference.h"
#include "core/string/ustring.h"
#include "core/variant/variant.h"
class LZ4Compressor : public Reference {
GDCLASS(LZ4Compressor, Reference);
public:
PoolByteArray compress_data(const PoolByteArray &data) const;
PoolByteArray decompress_data(const PoolByteArray &data) const;
2022-11-19 19:51:29 +01:00
static int LZ4_compressBound(int inputSize);
static int LZ4_compress_default(const char *src, char *dst, int srcSize, int dstCapacity);
static int LZ4_decompress_safe(const char *src, char *dst, int compressedSize, int dstCapacity);
2022-11-19 19:39:50 +01:00
LZ4Compressor();
~LZ4Compressor();
private:
static void _bind_methods();
private:
};
#endif