Asynchronous streaming GZIP compression Asynchronous streaming GZIP compression
+ new AsyncGzip(opts: GzipOptions, cb?: AsyncFlateStreamHandler): AsyncGzip
Creates an asynchronous GZIP stream
| Name | Type | Description |
|---|---|---|
opts |
GzipOptions | The compression options |
cb? |
AsyncFlateStreamHandler | The callback to call whenever data is deflated |
Returns: AsyncGzip
+ new AsyncGzip(cb?: AsyncFlateStreamHandler): AsyncGzip
Creates an asynchronous GZIP stream
| Name | Type | Description |
|---|---|---|
cb? |
AsyncFlateStreamHandler | The callback to call whenever data is deflated |
Returns: AsyncGzip
+ new AsyncGzip(opts: GzipOptions, cb?: AsyncFlateStreamHandler): AsyncGzip
Creates an asynchronous GZIP stream
| Name | Type | Description |
|---|---|---|
opts |
GzipOptions | The compression options |
cb? |
AsyncFlateStreamHandler | The callback to call whenever data is deflated |
Returns: AsyncGzip
+ new AsyncGzip(cb?: AsyncFlateStreamHandler): AsyncGzip
Creates an asynchronous GZIP stream
| Name | Type | Description |
|---|---|---|
cb? |
AsyncFlateStreamHandler | The callback to call whenever data is deflated |
Returns: AsyncGzip
• ondata: AsyncFlateStreamHandler
The handler to call whenever data is available The handler to call whenever data is available
▸ push(chunk: Uint8Array, final?: boolean): void
Pushes a chunk to be GZIPped
| Name | Type | Description |
|---|---|---|
chunk |
Uint8Array | The chunk to push |
final? |
boolean | Whether this is the last chunk |
Returns: void
▸ push(chunk: Uint8Array, final?: boolean): void
Pushes a chunk to be GZIPped
| Name | Type | Description |
|---|---|---|
chunk |
Uint8Array | The chunk to push |
final? |
boolean | Whether this is the last chunk |
Returns: void