You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
448 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __LIB_ZIP_ARCHIVE_HEADERS__
  2. #define __LIB_ZIP_ARCHIVE_HEADERS__
  3. #include <stdint.h>
  4. #include <zlib.h>
  5. class zipDataPackage
  6. {
  7. private:
  8. // zlib struct
  9. z_stream * m_pZipCtx;
  10. bool m_bCtxBusy;
  11. public:
  12. zipDataPackage();
  13. ~zipDataPackage();
  14. bool zip(uint8_t * data_in, size_t size_in, uint8_t *& data_out, size_t & size_out);
  15. bool unzip(uint8_t * data_in, size_t size_in, uint8_t *& data_out, size_t & size_out);
  16. };
  17. #endif