code atrib
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/*
|
||||
* Code Implemented From: https://www.w3.org/TR/PNG/#D-CRCAppendix
|
||||
*/
|
||||
|
||||
/* Table of CRCs of all 8-bit messages. */
|
||||
unsigned long crc_table[256];
|
||||
|
||||
|
||||
@@ -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