Parameters
string
required
The compressed string.
number
required
The decompressed length in bytes.
Returns
string
The original string.
Example
Errors
Related
lz4compress: compress first.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Decompress an LZ4 string.
lz4decompress(data: string, size: number) -> string
local original = lz4decompress(packed, #bigString)
| Message | Condition |
|---|---|
a compressed string and its decompressed size are required | An argument was missing. |
argument 2 must be a decompressed size between 1 and 64 MiB | The size was out of range. |
the compressed data is corrupt or the stated size does not match | The data or size did not match. |
lz4compress: compress first.