Skip to content

synodriver/lua-bz3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple lua binding for bzip3 's high-level api

usage

bz3 = require("bz3")

local data = "1234"
for i=1,7 do
    data = data..data
end
print("bzip3 version "..bz3.version)
print("origin size "..#data)
local compressed = bz3.compress(data, 1000)

print("compressed size "..#compressed)
decompressed = bz3.decompress(compressed, 1000)
assert(decompressed==data)

Releases

No releases published

Packages

No packages published