MCPcopy Create free account
hub / github.com/TruthHun/BookStack / deflate

Function deflate

static/word2md/mammoth.browser.js:17355–17364  ·  view source on GitHub ↗

* deflate(data[, options]) -> Uint8Array|Array|String * - data (Uint8Array|Array|String): input data to compress. * - options (Object): zlib deflate options. * * Compress `data` with deflate algorithm and `options`. * * Supported options are: * * - level * - windowBits * - memLevel * - st

(input, options)

Source from the content-addressed store, hash-verified

17353 * ```
17354 **/
17355function deflate(input, options) {
17356 var deflator = new Deflate(options);
17357
17358 deflator.push(input, true);
17359
17360 // That will never happens, if you don't cheat with options :)
17361 if (deflator.err) { throw deflator.msg; }
17362
17363 return deflator.result;
17364}
17365
17366
17367/**

Callers 2

deflateRawFunction · 0.70
gzipFunction · 0.70

Calls 9

errFunction · 0.70
put_byteFunction · 0.70
crc32Function · 0.70
putShortMSBFunction · 0.70
flush_pendingFunction · 0.70
rankFunction · 0.70
deflate_huffFunction · 0.70
deflate_rleFunction · 0.70
zeroFunction · 0.70

Tested by

no test coverage detected