* 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)
| 5614 | * ``` |
| 5615 | **/ |
| 5616 | function 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 | /** |
no test coverage detected