deflate

expect fun deflate(data: ByteArray, compressionLevel: Int = 5): ByteArray

Compresses data using DEFLATE algorithm according to RFC 1951.

Return

the compressed data.

Parameters

data

the data to compress.

compressionLevel

must be between 0 and 9, both inclusive.

Throws

actual fun deflate(data: ByteArray, compressionLevel: Int): ByteArray
actual fun deflate(data: ByteArray, compressionLevel: Int): ByteArray