Streaming DEFLATE compression for ZIP archives. Prefer using AsyncZipDeflate for better performance
+ new ZipDeflate(filename
: string, opts
: DeflateOptions): ZipDeflate
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: ZipDeflate
• 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
▸ 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