1 | /** |
---|
2 | * @file callZlib.h |
---|
3 | * @author Sheng Di |
---|
4 | * @date July, 2017 |
---|
5 | * @brief Header file for the callZlib.c. |
---|
6 | * (C) 2016 by Mathematics and Computer Science (MCS), Argonne National Laboratory. |
---|
7 | * See COPYRIGHT in top-level directory. |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef _CallZlib_H |
---|
11 | #define _CallZlib_H |
---|
12 | |
---|
13 | #ifdef __cplusplus |
---|
14 | extern "C" { |
---|
15 | #endif |
---|
16 | |
---|
17 | //#define SZ_ZLIB_BUFFER_SIZE 1048576 |
---|
18 | #define SZ_ZLIB_BUFFER_SIZE 65536 |
---|
19 | |
---|
20 | #include <stdio.h> |
---|
21 | |
---|
22 | //callZlib.c |
---|
23 | unsigned long zlib_compress(unsigned char* data, unsigned long dataLength, unsigned char** compressBytes, int level); |
---|
24 | unsigned long zlib_compress2(unsigned char* data, unsigned long dataLength, unsigned char** compressBytes, int level); |
---|
25 | unsigned long zlib_compress3(unsigned char* data, unsigned long dataLength, unsigned char* compressBytes, int level); |
---|
26 | unsigned long zlib_compress4(unsigned char* data, unsigned long dataLength, unsigned char** compressBytes, int level); |
---|
27 | unsigned long zlib_compress5(unsigned char* data, unsigned long dataLength, unsigned char** compressBytes, int level); |
---|
28 | |
---|
29 | unsigned long zlib_uncompress4(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData, unsigned long targetOriSize); |
---|
30 | unsigned long zlib_uncompress5(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData, unsigned long targetOriSize); |
---|
31 | unsigned long zlib_uncompress(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData, unsigned long targetOriSize); |
---|
32 | unsigned long zlib_uncompress2(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData, unsigned long targetOriSize); |
---|
33 | unsigned long zlib_uncompress3(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData, unsigned long targetOriSize); |
---|
34 | |
---|
35 | unsigned long zlib_uncompress65536bytes(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData); |
---|
36 | |
---|
37 | #ifdef __cplusplus |
---|
38 | } |
---|
39 | #endif |
---|
40 | |
---|
41 | #endif /* ----- #ifndef _CallZlib_H ----- */ |
---|
42 | |
---|