pandemonium_engine_minimal/modules/lz4/lz4_compressor.h

29 lines
704 B
C++
Raw Normal View History

2023-12-14 21:54:22 +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;
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);
LZ4Compressor();
~LZ4Compressor();
private:
static void _bind_methods();
private:
};
#endif