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