source: trip-planner-front/node_modules/pako/lib/zlib/constants.js@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.3 KB
Line 
1'use strict';
2
3// (C) 1995-2013 Jean-loup Gailly and Mark Adler
4// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
5//
6// This software is provided 'as-is', without any express or implied
7// warranty. In no event will the authors be held liable for any damages
8// arising from the use of this software.
9//
10// Permission is granted to anyone to use this software for any purpose,
11// including commercial applications, and to alter it and redistribute it
12// freely, subject to the following restrictions:
13//
14// 1. The origin of this software must not be misrepresented; you must not
15// claim that you wrote the original software. If you use this software
16// in a product, an acknowledgment in the product documentation would be
17// appreciated but is not required.
18// 2. Altered source versions must be plainly marked as such, and must not be
19// misrepresented as being the original software.
20// 3. This notice may not be removed or altered from any source distribution.
21
22module.exports = {
23
24 /* Allowed flush values; see deflate() and inflate() below for details */
25 Z_NO_FLUSH: 0,
26 Z_PARTIAL_FLUSH: 1,
27 Z_SYNC_FLUSH: 2,
28 Z_FULL_FLUSH: 3,
29 Z_FINISH: 4,
30 Z_BLOCK: 5,
31 Z_TREES: 6,
32
33 /* Return codes for the compression/decompression functions. Negative values
34 * are errors, positive values are used for special but normal events.
35 */
36 Z_OK: 0,
37 Z_STREAM_END: 1,
38 Z_NEED_DICT: 2,
39 Z_ERRNO: -1,
40 Z_STREAM_ERROR: -2,
41 Z_DATA_ERROR: -3,
42 //Z_MEM_ERROR: -4,
43 Z_BUF_ERROR: -5,
44 //Z_VERSION_ERROR: -6,
45
46 /* compression levels */
47 Z_NO_COMPRESSION: 0,
48 Z_BEST_SPEED: 1,
49 Z_BEST_COMPRESSION: 9,
50 Z_DEFAULT_COMPRESSION: -1,
51
52
53 Z_FILTERED: 1,
54 Z_HUFFMAN_ONLY: 2,
55 Z_RLE: 3,
56 Z_FIXED: 4,
57 Z_DEFAULT_STRATEGY: 0,
58
59 /* Possible values of the data_type field (though see inflate()) */
60 Z_BINARY: 0,
61 Z_TEXT: 1,
62 //Z_ASCII: 1, // = Z_TEXT (deprecated)
63 Z_UNKNOWN: 2,
64
65 /* The deflate compression method */
66 Z_DEFLATED: 8
67 //Z_NULL: null // Use -1 or null inline, depending on var type
68};
Note: See TracBrowser for help on using the repository browser.