brotliDecompress

abstract fun brotliDecompress(buffer: ZlibBuffer, options: BrotliOptions? = null, cbk: CompressCallback)

Method: zlib.brotliDecompress(buffer[, options], callback)

Asynchronously decompresses the given buffer using the Brotli algorithm; apply the provided options, or use defaults if no options are specified.

Parameters

buffer

The buffer to decompress.

options

An optional object containing configuration options for the decompression.

cbk

Callback which is passed the resulting buffer.


open fun brotliDecompress(buffer: Value, options: Value? = null, cbk: Value)

Method: zlib.brotliDecompress(buffer[, options], callback)

Asynchronously decompresses the given buffer using the Brotli algorithm; apply the provided options, or use defaults if no options are specified.

This method variant works with foreign Value instances.

Parameters

buffer

The buffer to decompress.

options

An optional object containing configuration options for the decompression.

cbk

Callback which is passed the resulting buffer.