MCPcopy Create free account
hub / github.com/hoothin/UserScripts / inflate

Function inflate

Picviewer CE+/dist.user.js:5616–5625  ·  view source on GitHub ↗

* inflate(data[, options]) -> Uint8Array|Array|String * - data (Uint8Array|Array|String): input data to decompress. * - options (Object): zlib inflate options. * * Decompress `data` with inflate/ungzip and `options`. Autodetect * format via wrapper header by default. That's why we don't provide

(input, options)

Source from the content-addressed store, hash-verified

5614 * ```
5615 **/
5616function inflate(input, options) {
5617 var inflator = new Inflate(options);
5618
5619 inflator.push(input, true);
5620
5621 // That will never happens, if you don't cheat with options :)
5622 if (inflator.err) { throw inflator.msg || msg[inflator.err]; }
5623
5624 return inflator.result;
5625}
5626
5627
5628/**

Callers 1

inflateRawFunction · 0.70

Calls 5

crc32Function · 0.70
zswap32Function · 0.70
fixedtablesFunction · 0.70
adler32Function · 0.70
updatewindowFunction · 0.70

Tested by

no test coverage detected