Skip to main content

Aliases

  • crypt.lz4decompress
  • crypt.lz4.decompress
  • lz4.decompress

Arguments

string
required
Raw compressed bytes passed to LZ4 block decompression.
number
Output buffer size passed as dstCapacity. For lz4compress output, pass the original uncompressed byte length; when omitted, the compressed input length is used.

Returns

string
Raw decompressed bytes returned as a Lua string. The output can be shorter than originalSize.

Example

Decompress LZ4 bytes by passing the original uncompressed size.