main
1export default {
2
3 /* Allowed flush values; see deflate() and inflate() below for details */
4 Z_NO_FLUSH: 0,
5 Z_PARTIAL_FLUSH: 1,
6 Z_SYNC_FLUSH: 2,
7 Z_FULL_FLUSH: 3,
8 Z_FINISH: 4,
9 Z_BLOCK: 5,
10 Z_TREES: 6,
11
12 /* Return codes for the compression/decompression functions. Negative values
13 * are errors, positive values are used for special but normal events.
14 */
15 Z_OK: 0,
16 Z_STREAM_END: 1,
17 Z_NEED_DICT: 2,
18 Z_ERRNO: -1,
19 Z_STREAM_ERROR: -2,
20 Z_DATA_ERROR: -3,
21 //Z_MEM_ERROR: -4,
22 Z_BUF_ERROR: -5,
23 //Z_VERSION_ERROR: -6,
24
25 /* compression levels */
26 Z_NO_COMPRESSION: 0,
27 Z_BEST_SPEED: 1,
28 Z_BEST_COMPRESSION: 9,
29 Z_DEFAULT_COMPRESSION: -1,
30
31
32 Z_FILTERED: 1,
33 Z_HUFFMAN_ONLY: 2,
34 Z_RLE: 3,
35 Z_FIXED: 4,
36 Z_DEFAULT_STRATEGY: 0,
37
38 /* Possible values of the data_type field (though see inflate()) */
39 Z_BINARY: 0,
40 Z_TEXT: 1,
41 //Z_ASCII: 1, // = Z_TEXT (deprecated)
42 Z_UNKNOWN: 2,
43
44 /* The deflate compression method */
45 Z_DEFLATED: 8
46 //Z_NULL: null // Use -1 or null inline, depending on var type
47};