Gzip

object Gzip

gzip (RFC 1952) framing over Deflate / Inflate, with the CRC-32 + ISIZE trailer. decompress also transparently accepts a bare zlib (RFC 1950) stream (some servers label a zlib stream Content-Encoding: deflate); that fallback is a small, clearly-marked extension.

Properties

Link copied to clipboard

Conservative default output cap (callers should pass their own from ArchiveLimits).

Functions

Link copied to clipboard

Compress data into a complete gzip member.

Link copied to clipboard
fun decompress(input: ByteArray, maximumSize: Long = DEFAULT_MAXIMUM_SIZE): ByteArray

Decompress a gzip (or bare zlib) stream and return the inflated bytes.