Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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.

About

LZ4 library for LuaJIT (FFI Binding)

Resources

License

Releases

No releases published

Packages

No packages published

Languages