Алиасы
crypt.lz4compresscrypt.lz4.compresslz4.compress
Аргументы
string
обязательно
Байты Lua string, передаваемые в LZ4 block compression.
Возвраты
string
Raw compressed bytes, возвращаемые как Lua string. original size не сохраняется в выводе.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Сжимает байты Lua string через LZ4 block compression и возвращает raw compressed bytes как Lua string.
lz4compress(data: string): string
crypt.lz4compresscrypt.lz4.compresslz4.compresslocal source = string.rep("Real Docs ", 100)
local compressed = lz4compress(source)
local restored = lz4decompress(compressed, #source)
print(#source, #compressed, restored == source)