LZ4 library for LuaJIT (FFI Binding)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
.travis.yml
LICENSE
README.md
lz4.lua

README.md

ljlz4

travis-ci status

LZ4 library for LuaJIT (FFI Binding)

Usage

Overview

local lz4 = require("lz4")
local data = "hello lz4"
local errmsg, compressed_data, decompressed_data
compressed_data, errmsg = lz4.compress(data)
decompressed_data, errmsg = lz4.decompress(compressed_data)
assert(decompressed_data == data)

Compression

local compressed_data, errmsg = lz4.compress(data, compression_level)

Decompression

local decompressed_data, errmsg = lz4.decompress(compressed_data)

License

Copyright (c) 2014 Cheyi Lin. MIT licensed. See LICENSE for details.