Class Unzlib
Index
Constructors
constructor
- new
Unzlib (opts, cb?): Unzlib Creates a Zlib decompression stream
Parameters
- opts: UnzlibStreamOptions
The decompression options
Optional
cb: FlateStreamHandlerThe callback to call whenever data is inflated
Returns Unzlib
- opts: UnzlibStreamOptions
- new
Unzlib (cb?): Unzlib Creates a Zlib decompression stream
Parameters
Optional
cb: FlateStreamHandlerThe callback to call whenever data is inflated
Returns Unzlib
Methods
push
- push(chunk, final?): void
Pushes a chunk to be unzlibbed
Parameters
- chunk: Uint8Array
The chunk to push
Optional
final: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array
Streaming Zlib decompression