source: thirdparty/SZ/sz/include/callZlib.h @ 9ee2ce3

Revision 9ee2ce3, 1.9 KB checked in by Hal Finkel <hfinkel@…>, 6 years ago (diff)

importing new SZ files

  • Property mode set to 100644
Line 
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
14extern "C" {
15#endif
16
17//#define SZ_ZLIB_BUFFER_SIZE 1048576   
18#define SZ_ZLIB_BUFFER_SIZE 65536
19
20#include <stdio.h>
21
22int isZlibFormat(unsigned char magic1, unsigned char magic2);
23
24//callZlib.c
25unsigned long zlib_compress(unsigned char* data, unsigned long dataLength, unsigned char** compressBytes, int level);
26unsigned long zlib_compress2(unsigned char* data, unsigned long dataLength, unsigned char** compressBytes, int level);
27unsigned long zlib_compress3(unsigned char* data, unsigned long dataLength, unsigned char* compressBytes, int level);
28unsigned long zlib_compress4(unsigned char* data, unsigned long dataLength, unsigned char** compressBytes, int level);
29unsigned long zlib_compress5(unsigned char* data, unsigned long dataLength, unsigned char** compressBytes, int level);
30
31unsigned long zlib_uncompress4(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData, unsigned long targetOriSize);
32unsigned long zlib_uncompress5(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData, unsigned long targetOriSize);
33unsigned long zlib_uncompress(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData, unsigned long targetOriSize);
34unsigned long zlib_uncompress2(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData, unsigned long targetOriSize);
35unsigned long zlib_uncompress3(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData, unsigned long targetOriSize);
36
37unsigned long zlib_uncompress65536bytes(unsigned char* compressBytes, unsigned long cmpSize, unsigned char** oriData);
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif /* ----- #ifndef _CallZlib_H  ----- */
44
Note: See TracBrowser for help on using the repository browser.