Skip to main content

Aliases

  • crypt.lz4compress
  • crypt.lz4.compress
  • lz4.compress

Arguments

string
required
Lua string bytes passed to LZ4 block compression.

Returns

string
Raw compressed bytes returned as a Lua string. The original size is not stored in the output.

Example

Compress Lua string bytes and restore them by passing the original size.