mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
19 lines
623 B
JavaScript
19 lines
623 B
JavaScript
/**
|
|
* Zlib exports.
|
|
*
|
|
* @author n1474335 [n1474335@gmail.com]
|
|
* @copyright Crown Copyright 2016
|
|
* @license Apache-2.0
|
|
*/
|
|
|
|
import zlibAndGzip from "zlibjs/bin/zlib_and_gzip.min";
|
|
|
|
const Zlib = zlibAndGzip.Zlib;
|
|
|
|
export const COMPRESSION_TYPE = ["Dynamic Huffman Coding", "Fixed Huffman Coding", "None (Store)"];
|
|
export const INFLATE_BUFFER_TYPE = ["Adaptive", "Block"];
|
|
export const ZLIB_COMPRESSION_TYPE_LOOKUP = {
|
|
"Fixed Huffman Coding": Zlib.Deflate.CompressionType.FIXED,
|
|
"Dynamic Huffman Coding": Zlib.Deflate.CompressionType.DYNAMIC,
|
|
"None (Store)": Zlib.Deflate.CompressionType.NONE,
|
|
};
|