A decoder for files in ZIP streams

interface UnzipDecoder {
    ondata: AsyncFlateStreamHandler;
    terminate?: AsyncTerminable;
    push(data: Uint8Array, final: boolean): void;
}
Implemented by

Methods

Properties

Methods

  • Pushes a chunk to be decompressed

    Parameters

    • 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

Properties

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.