code atrib
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
|
||||
#define CHUNK 1024
|
||||
|
||||
/*
|
||||
* Built from exmaple provided in: https://zlib.net/zlib_how.html
|
||||
*/
|
||||
void zlib_decompress_data(unsigned char *data_chunk, size_t file_length, unsigned char **buff, size_t *sz) {
|
||||
int ret;
|
||||
unsigned int have;
|
||||
@@ -68,6 +71,9 @@ void zlib_decompress_data(unsigned char *data_chunk, size_t file_length, unsigne
|
||||
fclose(of);
|
||||
}
|
||||
|
||||
/*
|
||||
* Built from exmaple provided in: https://zlib.net/zlib_how.html
|
||||
*/
|
||||
void zlib_compress_data(unsigned char *data_chunk, size_t file_length, unsigned char **buff, size_t *sz) {
|
||||
int ret, flush;
|
||||
unsigned int have;
|
||||
|
||||
Reference in New Issue
Block a user