Class AsyncUnzipInflate

Asynchronous streaming DEFLATE decompression for ZIP archives

Implements
Index
  • Creates a DEFLATE decompression that can be used in ZIP archives

    Parameters

    • _: string
    • Optionalsz: number

    Returns AsyncUnzipInflate

  • Pushes a chunk to be decompressed

    Parameters

    • chunk: Uint8Array

      The data in this chunk. Do not consume (detach) this buffer.

    • final: boolean

      Whether this is the last chunk in the data stream

    Returns void

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.

compression: number