-
Notifications
You must be signed in to change notification settings - Fork 3
/
_zlib1.h
74 lines (55 loc) · 1.99 KB
/
_zlib1.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
*!* _zlib.h
#define ZLIB_VERSION "1.2.8"
#define ZLIB_VERNUM 0x1280
#define ZLIB_VER_MAJOR 1
#define ZLIB_VER_MINOR 2
#define ZLIB_VER_REVISION 8
#define ZLIB_VER_SUBREVISION 0
#Define MAX_WBITS 15
*!* Allowed flush values; see deflate() and inflate() below for details */
#Define Z_NO_FLUSH 0
#Define Z_PARTIAL_FLUSH 1
#Define Z_SYNC_FLUSH 2
#Define Z_FULL_FLUSH 3
#Define Z_FINISH 4
#Define Z_BLOCK 5
#Define Z_TREES 6
*!* Return codes for the compression/decompression functions. Negative values
*!* are errors, positive values are used for special but normal events.
#Define Z_OK 0
#Define Z_STREAM_END 1
#Define Z_NEED_DICT 2
#Define Z_ERRNO (-1)
#Define Z_STREAM_ERROR (-2)
#Define Z_DATA_ERROR (-3)
#Define Z_MEM_ERROR (-4)
#Define Z_BUF_ERROR (-5)
#Define Z_VERSION_ERROR (-6)
*!* compression levels */
#Define Z_NO_COMPRESSION 0
#Define Z_BEST_SPEED 1
#Define Z_BEST_COMPRESSION 9
#Define Z_DEFAULT_COMPRESSION (-1)
*!* compression strategy; see deflateInit2() below for details */
#Define Z_FILTERED 1
#Define Z_HUFFMAN_ONLY 2
#Define Z_RLE 3
#Define Z_FIXED 4
#Define Z_DEFAULT_STRATEGY 0
*!* Possible values of the data_type field (though see inflate()) */
#Define Z_BINARY 0
#Define Z_TEXT 1
#Define Z_ASCII Z_TEXT && for compatibility with 1.2.2 and earlier */
#Define Z_UNKNOWN 2
*!* The deflate compression method (the only one supported in this version) */
#Define Z_DEFLATED 8
#Define Z_NULL 0 && for initializing zalloc, zfree, opaque */
*!* Maximum value for memLevel in deflateInit2
#Define MAX_MEM_LEVEL 8
#define LOCAL_FILE_HEADER_SIGNATURE 0h504b0304
#define CENTRAL_FILE_HEADER_SIGNATURE 0h504b0102
#define DIGITAL_SIGNATURE 0h504b0505
#define ZIP64_EOCD_SIGNATURE 0h504b0606
#define ZIP64_EOCD_LOCATOR_SIGNATURE 0h504b0607
#define EOCD_SIGNATURE 0h504b0506
#define DATA_DESCRIPTOR_SIGNATURE 0h504b0708