mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-07-02 00:20:22 +02:00
Zlib moved into separate module.
This commit is contained in:
37
ZlibDecompressor.h
Normal file
37
ZlibDecompressor.h
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* =====================================================================
|
||||
* Version: 1.0
|
||||
* Created: 18.09.2012 10:20:51
|
||||
* Author: Miroslav Bendík
|
||||
* Company: LinuxOS.sk
|
||||
* =====================================================================
|
||||
*/
|
||||
|
||||
#ifndef ZLIBDECOMPRESSOR_H_ZQL1PN8Q
|
||||
#define ZLIBDECOMPRESSOR_H_ZQL1PN8Q
|
||||
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
||||
|
||||
class ZlibDecompressor
|
||||
{
|
||||
public:
|
||||
typedef std::basic_string<unsigned char> string;
|
||||
class DecompressError {
|
||||
};
|
||||
|
||||
ZlibDecompressor(const unsigned char *data, std::size_t size);
|
||||
~ZlibDecompressor();
|
||||
void setSeekPos(std::size_t seekPos);
|
||||
std::size_t seekPos() const;
|
||||
string decompress();
|
||||
|
||||
private:
|
||||
const unsigned char *m_data;
|
||||
std::size_t m_seekPos;
|
||||
std::size_t m_size;
|
||||
}; /* ----- end of class ZlibDecompressor ----- */
|
||||
|
||||
#endif /* end of include guard: ZLIBDECOMPRESSOR_H_ZQL1PN8Q */
|
||||
|
Reference in New Issue
Block a user