mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-12-26 02:40:37 +01:00
21 lines
344 B
C++
21 lines
344 B
C++
#pragma once
|
|
|
|
#include <exception>
|
|
#include "types.h"
|
|
|
|
class ZlibDecompressor
|
|
{
|
|
public:
|
|
class DecompressError : std::exception {};
|
|
|
|
ZlibDecompressor(const u8 *data, size_t size);
|
|
~ZlibDecompressor();
|
|
void setSeekPos(size_t seekPos);
|
|
size_t seekPos() const;
|
|
ustring decompress();
|
|
|
|
private:
|
|
const u8 *m_data;
|
|
size_t m_seekPos, m_size;
|
|
};
|