Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 233 Bytes

File metadata and controls

15 lines (10 loc) · 233 Bytes

lua-zstd

lua binding for https://github.com/facebook/zstd

use

local ztsd = require "zstd"


local str = "asdf"
local s = ztsd.compress(str)
print(s, string.len(s))

assert(ztsd.decompress(s, string.len(str)) == str)