1 /* 2 * ===================================================================== 3 * Version: 1.0 4 * Created: 18.09.2012 10:20:51 5 * Author: Miroslav Bendík 6 * Company: LinuxOS.sk 7 * ===================================================================== 8 */ 9 10 #ifndef ZLIBDECOMPRESSOR_H_ZQL1PN8Q 11 #define ZLIBDECOMPRESSOR_H_ZQL1PN8Q 12 13 #include <cstdlib> 14 #include <string> 15 #include "types.h" 16 17 18 class ZlibDecompressor 19 { 20 public: 21 class DecompressError { 22 }; 23 24 ZlibDecompressor(const unsigned char *data, std::size_t size); 25 ~ZlibDecompressor(); 26 void setSeekPos(std::size_t seekPos); 27 std::size_t seekPos() const; 28 ustring decompress(); 29 30 private: 31 const unsigned char *m_data; 32 std::size_t m_seekPos; 33 std::size_t m_size; 34 }; /* ----- end of class ZlibDecompressor ----- */ 35 36 #endif /* end of include guard: ZLIBDECOMPRESSOR_H_ZQL1PN8Q */ 37 38