mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-27 18:03:54 +01:00
8e83ce6464
also a few small performance improvements
25 lines
401 B
C++
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;
|
|
};
|