Cryptography
lz4compress
Lua string のバイトを LZ4 block compression で圧縮し、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.
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)