Asynchronous streaming DEFLATE decompression for ZIP archives
• new AsyncUnzipInflate(_
, sz?
)
Creates a DEFLATE decompression that can be used in ZIP archives
Name | Type |
---|---|
_ |
string |
sz? |
number |
• ondata: AsyncFlateStreamHandler
The handler to call whenever data is available
• terminate: AsyncTerminable
A method to terminate any internal workers used by the stream. Subsequent calls to push() should silently fail.
▪ Static
compression: number
= 8
▸ push(data
, final
): void
Pushes a chunk to be decompressed
Name | Type | Description |
---|---|---|
data |
Uint8Array |
The data in this chunk. Do not consume (detach) this data. |
final |
boolean |
Whether this is the last chunk in the data stream |
void