Zlib

object Zlib

zlib (RFC 1950) framing over Deflate / Inflate: a 2-byte CMF/FLG header and a big-endian Adler-32 trailer. This is the wrapper PNG IDAT and PDF FlateDecode use.

Functions

Link copied to clipboard

Compress data into a zlib stream.

Link copied to clipboard
fun decompress(input: ByteArray, maximumSize: Long = 4L * 1024 * 1024): ByteArray

Decompress a zlib stream. The Adler-32 trailer is not re-validated here.