1
0
mirror of https://github.com/Amulet-Team/leveldb-mcpe.git synced 2024-11-24 02:56:15 +00:00
leveldb-amulet/include/leveldb/snappy_compressor.h
Tommaso Checchi 0f37dce1ec Added all changes made for MCPE:
-added a compressor interface
-added a zlib compressor
-added windows support
-added support to build as a DLL (sorry for the DLLX everywhere)
2014-06-14 21:24:10 +02:00

24 lines
475 B
C++

#pragma once
#include "compressor.h"
namespace leveldb {
class DLLX SnappyCompressor : public Compressor
{
public:
static const char SERIALIZE_ID = 1;
virtual ~SnappyCompressor() {}
SnappyCompressor() :
Compressor(SERIALIZE_ID) {
}
virtual void compressImpl(const char* input, size_t length, ::std::string& output) const override;
virtual bool decompress(const char* input, size_t length, ::std::string& output) const override;
};
}