Skip to content

lua bindings for the teeworlds huffman compression code

License

Notifications You must be signed in to change notification settings

luluworlds/luluman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luluman

Lua bindings for the teeworlds huffman compression code written in C.

luarocks install luluman
local huffman = require("luluman")
local data = string.char(0x1c, 0xa5, 0xb8, 0x01)
local decompressed = huffman.decompress(data, #data)
assert(decompressed == "a")

local text = "hello"
data = huffman.compress(text, #text)
assert(text == huffman.decompress(data, #data))

About

lua bindings for the teeworlds huffman compression code

Resources

License

Stars

Watchers

Forks

Packages

No packages published