decompress

Decompresses input using the codec matching its magic byte.

Return

The decompressed data.

Parameters

input

The compressed data; the first byte must be a recognised magic byte.

Throws

IllegalArgumentException

if input is empty or the magic byte is not recognised.