2020-05-08 22:10:49 +02:00
|
|
|
#pragma once
|
2012-09-18 10:43:34 +02:00
|
|
|
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <string>
|
2014-04-19 08:13:34 +02:00
|
|
|
#include "types.h"
|
2012-09-18 10:43:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
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;
|
2014-04-19 08:13:34 +02:00
|
|
|
ustring decompress();
|
2012-09-18 10:43:34 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
const unsigned char *m_data;
|
|
|
|
std::size_t m_seekPos;
|
|
|
|
std::size_t m_size;
|
2020-05-08 22:10:49 +02:00
|
|
|
};
|