File: ZlibDecompressor.h

package info (click to toggle)
minetestmapper 20200328-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 252 kB
  • sloc: cpp: 2,454; sh: 65; ansic: 32; makefile: 9
file content (37 lines) | stat: -rw-r--r-- 861 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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>
#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;
}; /* -----  end of class ZlibDecompressor  ----- */

#endif /* end of include guard: ZLIBDECOMPRESSOR_H_ZQL1PN8Q */