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.

18 lines
458 B

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