You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 2.3KB

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