Streaming Zlib compression

Constructors

Methods

Properties

Constructors

  • Creates a Zlib stream

    Parameters

    Returns Zlib

  • Creates a Zlib stream

    Parameters

    Returns Zlib

Methods

  • Flushes buffered uncompressed data. Useful to immediately retrieve the zlibbed output for small inputs.

    Returns void

  • Pushes a chunk to be zlibbed

    Parameters

    • chunk: Uint8Array

      The chunk to push

    • Optionalfinal: boolean

      Whether this is the last chunk

    Returns void

Properties

The handler to call whenever data is available