Compresses a string with LZ4. Pair it with lz4decompress, passing the original length to the decompressor. Input is limited to a single compressible block.

Parameters

string
required
The string to compress.

Returns

string
The compressed bytes.

Example

Errors