gunzipSync

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

Method: zlib.gunzipSync(buffer, options)

Synchronously decompresses the given buffer using the GZIP 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 gunzipSync(buffer: Value?, options: Value? = null): ZlibBuffer

Method: zlib.gunzipSync(buffer, options)

Synchronously decompresses the given buffer using the GZIP 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.