Package-level declarations

Types

Link copied to clipboard
object Deflate

Pure-Kotlin RFC 1951 DEFLATE deflater, the inverse of Inflate.

Link copied to clipboard
object Inflate

Raw DEFLATE (RFC 1951) decompressor. It is a pure-Kotlin translation of Mark Adler's puff(), the deliberately simple reference inflate that ships with zlib at contrib/puff/puff.c.

Link copied to clipboard

Error codes for DEFLATE and gzip inflation. The integer code is exactly the value Mark Adler's puff() returns, plus two wrapper-level codes puff() never produces. A reader who cross-references the canonical C source can map an exception back to the branch that raised it.

Link copied to clipboard

Thrown by Inflate and the gzip/zlib framers when decompression fails. Carries the specific error so callers can branch on the exact failure mode.