deflate

expect suspend fun ByteArray.deflate(compressionLevel: Int = 5): ByteArray

Compresses data using DEFLATE algorithm according to RFC 1951.

The implementation may not support compressionLevel and use a fixed level instead.

Receiver

the data to compress.

Return

the compressed data.

Parameters

compressionLevel

must be between 0 and 9, both inclusive.

Throws

actual suspend fun ByteArray.deflate(compressionLevel: Int): ByteArray
actual suspend fun ByteArray.deflate(compressionLevel: Int): ByteArray
actual suspend fun ByteArray.deflate(compressionLevel: Int): ByteArray