minetestmapper/include/ZlibDecompressor.h
sfan5 8e83ce6464 Some more code modernization
also a few small performance improvements
2020-05-08 22:16:13 +02:00

25 lines
401 B
C++

#pragma once
#include <cstdlib>
#include <string>
#include "types.h"
class ZlibDecompressor
{
public:
class DecompressError {
};
ZlibDecompressor(const unsigned char *data, std::size_t size);
~ZlibDecompressor();
void setSeekPos(std::size_t seekPos);
std::size_t seekPos() const;
ustring decompress();
private:
const unsigned char *m_data;
std::size_t m_seekPos;
std::size_t m_size;
};