2018-08-27 12:30:50 +00:00
|
|
|
export default {
|
2018-08-14 12:11:49 +00:00
|
|
|
|
|
|
|
/* Allowed flush values; see deflate() and inflate() below for details */
|
2018-08-27 12:30:50 +00:00
|
|
|
Z_NO_FLUSH: 0,
|
|
|
|
Z_PARTIAL_FLUSH: 1,
|
|
|
|
Z_SYNC_FLUSH: 2,
|
|
|
|
Z_FULL_FLUSH: 3,
|
|
|
|
Z_FINISH: 4,
|
|
|
|
Z_BLOCK: 5,
|
|
|
|
Z_TREES: 6,
|
2018-08-14 12:11:49 +00:00
|
|
|
|
|
|
|
/* Return codes for the compression/decompression functions. Negative values
|
|
|
|
* are errors, positive values are used for special but normal events.
|
|
|
|
*/
|
2018-08-27 12:30:50 +00:00
|
|
|
Z_OK: 0,
|
|
|
|
Z_STREAM_END: 1,
|
|
|
|
Z_NEED_DICT: 2,
|
|
|
|
Z_ERRNO: -1,
|
|
|
|
Z_STREAM_ERROR: -2,
|
|
|
|
Z_DATA_ERROR: -3,
|
2018-08-14 12:11:49 +00:00
|
|
|
//Z_MEM_ERROR: -4,
|
2018-08-27 12:30:50 +00:00
|
|
|
Z_BUF_ERROR: -5,
|
2018-08-14 12:11:49 +00:00
|
|
|
//Z_VERSION_ERROR: -6,
|
|
|
|
|
|
|
|
/* compression levels */
|
2018-08-27 12:30:50 +00:00
|
|
|
Z_NO_COMPRESSION: 0,
|
|
|
|
Z_BEST_SPEED: 1,
|
|
|
|
Z_BEST_COMPRESSION: 9,
|
|
|
|
Z_DEFAULT_COMPRESSION: -1,
|
|
|
|
|
2018-08-14 12:11:49 +00:00
|
|
|
|
2018-08-27 12:30:50 +00:00
|
|
|
Z_FILTERED: 1,
|
|
|
|
Z_HUFFMAN_ONLY: 2,
|
|
|
|
Z_RLE: 3,
|
|
|
|
Z_FIXED: 4,
|
|
|
|
Z_DEFAULT_STRATEGY: 0,
|
2018-08-14 12:11:49 +00:00
|
|
|
|
|
|
|
/* Possible values of the data_type field (though see inflate()) */
|
2018-08-27 12:30:50 +00:00
|
|
|
Z_BINARY: 0,
|
|
|
|
Z_TEXT: 1,
|
2018-08-14 12:11:49 +00:00
|
|
|
//Z_ASCII: 1, // = Z_TEXT (deprecated)
|
2018-08-27 12:30:50 +00:00
|
|
|
Z_UNKNOWN: 2,
|
2018-08-14 12:11:49 +00:00
|
|
|
|
|
|
|
/* The deflate compression method */
|
2018-08-27 12:30:50 +00:00
|
|
|
Z_DEFLATED: 8
|
2018-08-14 12:11:49 +00:00
|
|
|
//Z_NULL: null // Use -1 or null inline, depending on var type
|
2018-08-27 12:30:50 +00:00
|
|
|
};
|