Streaming single or multi-member GZIP decompression
+ new Gunzip(opts
: GunzipStreamOptions, cb?
: FlateStreamHandler): Gunzip
Creates a GUNZIP stream
Name | Type | Description |
---|---|---|
opts |
GunzipStreamOptions | The decompression options |
cb? |
FlateStreamHandler | The callback to call whenever data is inflated |
Returns: Gunzip
+ new Gunzip(cb?
: FlateStreamHandler): Gunzip
Creates a GUNZIP stream
Name | Type | Description |
---|---|---|
cb? |
FlateStreamHandler | The callback to call whenever data is inflated |
Returns: Gunzip
• ondata: FlateStreamHandler
The handler to call whenever data is available
• Optional
onmember: GunzipMemberHandler
The handler to call whenever a new GZIP member is found
▸ push(chunk
: Uint8Array, final?
: boolean): void
Pushes a chunk to be GUNZIPped
Name | Type | Description |
---|---|---|
chunk |
Uint8Array | The chunk to push |
final? |
boolean | Whether this is the last chunk |
Returns: void