gzipSync

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

Method: zlib.gzipSync(buffer, options)

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

Return

The compressed buffer.

Parameters

buffer

The buffer to compress.

options

An optional object containing configuration options for the compression.


open fun gzipSync(buffer: Value?, options: Value? = null): ByteBuffer

Method: zlib.gzipSync(buffer, options)

Synchronously compresses 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 compressed buffer.

Parameters

buffer

The buffer to compress.

options

An optional object containing configuration options for the compression.