unzipSync

abstract fun unzipSync(buffer: ZlibBuffer, options: ZlibOptions? = null): ZlibBuffer

Method: zlib.unzipSync(buffer, options)

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

Return

The decompressed buffer.

Parameters

buffer

The buffer to decompress.

options

An optional object containing configuration options for the decompression.


open fun unzipSync(buffer: Value?, options: Value? = null): ZlibBuffer

Method: zlib.unzipSync(buffer, options)

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

This method variant works with foreign Value instances.

Return

The decompressed buffer.

Parameters

buffer

The buffer to decompress.

options

An optional object containing configuration options for the decompression.