1
0
This repository has been archived on 2024-09-10. You can view files and clone it, but cannot push or open issues or pull requests.
levedb-mcpe-legacy/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;
};
}