code atrib

This commit is contained in:
Pin
2021-10-11 23:48:52 -04:00
parent 2f51491db9
commit 7534150326
2 changed files with 10 additions and 0 deletions

View File

@@ -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;