Function gzipSync

  • Compresses a chunk of data with zlib GZIP algorithm.

    Returns

    The output buffer with the compressed data

    Parameters

    • data: Uint8Array

      The buffer of data to compress

    • Optional options: ZlibCompressionOptions

      Compression options to use

    Returns Uint8Array

  • Compresses a chunk of data with zlib GZIP algorithm.

    Returns

    The output buffer with the compressed data

    Parameters

    • data: Uint8Array

      The buffer of data to compress

    • Optional options: ZlibCompressionOptions

      Compression options to use

    Returns Uint8Array

Generated using TypeDoc