mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 20:57:18 +01:00
29 lines
704 B
C++
29 lines
704 B
C++
#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
|