Skip to content

Latest commit

 

History

History
92 lines (51 loc) · 1.8 KB

AsyncUnzipInflate.md

File metadata and controls

92 lines (51 loc) · 1.8 KB

Class: AsyncUnzipInflate

Asynchronous streaming DEFLATE decompression for ZIP archives

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AsyncUnzipInflate(_, sz?)

Creates a DEFLATE decompression that can be used in ZIP archives

Parameters

Name Type
_ string
sz? number

Properties

ondata

ondata: AsyncFlateStreamHandler

The handler to call whenever data is available

Implementation of

UnzipDecoder.ondata


terminate

terminate: AsyncTerminable

A method to terminate any internal workers used by the stream. Subsequent calls to push() should silently fail.

Implementation of

UnzipDecoder.terminate


compression

Static compression: number = 8

Methods

push

push(data, final): void

Pushes a chunk to be decompressed

Parameters

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

Returns

void

Implementation of

UnzipDecoder.push