Skip to content

CheyiLin/ljlz4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ljlz4

ci-dev

LZ4 library for LuaJIT (FFI Binding)

Compatibility

Version LuaJIT 2.0 LuaJIT 2.1 (OpenResty)
lz4 v1.9.3
lz4 v1.8.3
lz4 v1.7.5
lz4 r131

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-2021 Cheyi Lin. MIT licensed. See LICENSE for details.

About

LZ4 library for LuaJIT (FFI Binding)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages