Streaming DEFLATE decompression
+ new Inflate(opts: InflateStreamOptions, cb?: FlateStreamHandler): Inflate
Creates a DEFLATE decompression stream
| Name | Type | Description |
|---|---|---|
opts |
InflateStreamOptions | The decompression options |
cb? |
FlateStreamHandler | The callback to call whenever data is inflated |
Returns: Inflate
+ new Inflate(cb?: FlateStreamHandler): Inflate
Creates a DEFLATE decompression stream
| Name | Type | Description |
|---|---|---|
cb? |
FlateStreamHandler | The callback to call whenever data is inflated |
Returns: Inflate
• ondata: FlateStreamHandler
The handler to call whenever data is available
▸ push(chunk: Uint8Array, final?: boolean): void
Pushes a chunk to be inflated
| Name | Type | Description |
|---|---|---|
chunk |
Uint8Array | The chunk to push |
final? |
boolean | Whether this is the final chunk |
Returns: void