decompress

Decompresses an RLE-encoded Nintendo DS buffer.

Return

The fully decompressed data.

Parameters

input

The raw compressed bytes, starting with the 0x30 magic byte.

Throws

IllegalArgumentException

if the magic byte is not 0x30 or the buffer is too short to contain a valid header.