gunzip

abstract fun gunzip(buffer: ZlibBuffer, options: ZlibOptions? = null, cbk: CompressCallback)

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

Asynchronously decompresses the given buffer using the gunzip 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 gunzip(buffer: Value, options: Value? = null, cbk: Value)

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

Asynchronously decompresses the given buffer using the gunzip 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.