Function deflateSync

  • Compresses a chunk of data with zlib DEFLATE 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 DEFLATE 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