2018-04-02 20:46:55 +01:00
|
|
|
/**
|
|
|
|
* Zlib exports.
|
|
|
|
*
|
|
|
|
* @author n1474335 [n1474335@gmail.com]
|
|
|
|
* @copyright Crown Copyright 2016
|
|
|
|
* @license Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2019-07-09 12:23:59 +01:00
|
|
|
import zlibAndGzip from "zlibjs/bin/zlib_and_gzip.min.js";
|
2018-04-02 20:46:55 +01:00
|
|
|
|
|
|
|
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,
|
|
|
|
};
|