Decompresses an LZ4 string back to its original. You must pass the decompressed length, which is why keeping the original size alongside the compressed data is part of using LZ4.

Parameters

string
required
The compressed string.
number
required
The decompressed length in bytes.

Returns

string
The original string.

Example

Errors