decompress

fun decompress(input: ByteArray, maximumSize: Long = DEFAULT_MAXIMUM_SIZE): ByteArray

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

Throws

InflateError.INVALID_GZIP_HEADER if no valid header, InflateError.INFLATED_DATA_TOO_LARGE if the cap is hit, or a DEFLATE-level error.