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

#ifndef __LIB_ZIP_ARCHIVE_HEADERS__
#define __LIB_ZIP_ARCHIVE_HEADERS__
#include <stdint.h>
#include <zlib.h>
class zipDataPackage
{
private:
// zlib struct
z_stream * m_pZipCtx;
bool m_bCtxBusy;
public:
zipDataPackage();
~zipDataPackage();
bool zip(uint8_t * data_in, size_t size_in, uint8_t *& data_out, size_t & size_out);
bool unzip(uint8_t * data_in, size_t size_in, uint8_t *& data_out, size_t & size_out);
};
#endif