Asynchronous streaming Zlib decompression
+ new AsyncUnzlib(opts
: UnzlibStreamOptions, cb?
: AsyncFlateStreamHandler): AsyncUnzlib
Creates an asynchronous Zlib decompression stream
Name | Type | Description |
---|---|---|
opts |
UnzlibStreamOptions | The decompression options |
cb? |
AsyncFlateStreamHandler | The callback to call whenever data is inflated |
Returns: AsyncUnzlib
+ new AsyncUnzlib(cb?
: AsyncFlateStreamHandler): AsyncUnzlib
Creates an asynchronous Zlib decompression stream
Name | Type | Description |
---|---|---|
cb? |
AsyncFlateStreamHandler | The callback to call whenever data is inflated |
Returns: AsyncUnzlib
• ondata: AsyncFlateStreamHandler
The handler to call whenever data is available
• terminate: AsyncTerminable
A method to terminate the stream's internal worker. Subsequent calls to push() will silently fail.
▸ push(chunk
: Uint8Array, final?
: boolean): void
Pushes a chunk to be decompressed from Zlib
Name | Type | Description |
---|---|---|
chunk |
Uint8Array | The chunk to push |
final? |
boolean | Whether this is the last chunk |
Returns: void