chunkSize - size of generated data chunks (16K by default)
raw (Boolean) - do raw inflate
to (String) - if equal to 'string', then result will be converted
from utf8 to utf16 (javascript) string. When string output requested,
chunk length can differ from chunkSize, depending on content.
By default, when no options set, autodetect deflate/gzip data format via
wrapper header.
new Inflate(options)
Creates new inflator instance with specified params. Throws exception on bad params. Supported options:
windowBits
dictionary
http://zlib.net/manual.html#Advanced for more information on these.
Additional options, for internal needs:
chunkSize
- size of generated data chunks (16K by default)raw
(Boolean) - do raw inflateto
(String) - if equal to 'string', then result will be converted from utf8 to utf16 (javascript) string. When string output requested, chunk length can differ fromchunkSize
, depending on content.By default, when no options set, autodetect deflate/gzip data format via wrapper header.
Example: