Asynchronous streaming DEFLATE compression for ZIP archives
+ new AsyncZipDeflate(filename: string, opts: DeflateOptions): AsyncZipDeflate
Creates a DEFLATE stream that can be added to ZIP archives
| Name | Type | Default value | Description |
|---|---|---|---|
filename |
string | - | The filename to associate with this data stream |
opts |
DeflateOptions | {} | The compression options |
Returns: AsyncZipDeflate
• Optional attrs: number
Implementation of ZipInputFile.attrs
• compression: number
Implementation of ZipInputFile.compression
• crc: number
Implementation of ZipInputFile.crc
• filename: string
Implementation of ZipInputFile.filename
• flag: 0 | 1 | 2 | 3
Implementation of ZipInputFile.flag
• ondata: AsyncFlateStreamHandler
Implementation of ZipInputFile.ondata
• Optional os: number
Implementation of ZipInputFile.os
• size: number
Implementation of ZipInputFile.size
• terminate: AsyncTerminable
Implementation of ZipInputFile.terminate
▸ process(chunk: Uint8Array, final: boolean): void
| Name | Type |
|---|---|
chunk |
Uint8Array |
final |
boolean |
Returns: void
▸ 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