Streaming GZIP compression

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

    Parameters

    • Optionalsync: boolean

      Whether to flush to a byte boundary. A sync flush takes 4-5 extra bytes, but guarantees all pushed data is immediately decompressible.

    Returns void

  • Pushes a chunk to be GZIPped

    Parameters

    • chunk: Uint8Array

      The chunk to push

    • Optionalfinal: boolean

      Whether this is the last chunk

    Returns void

The handler to call whenever data is available