Cryptography
lz4compress
使用 LZ4 block compression 压缩 Lua string 字节,并将 raw compressed bytes 作为 Lua string 返回。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用 LZ4 block compression 压缩 Lua string 字节,并将 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)