Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/synodriver/lua-bz3
simple lua binding for bzip3
https://github.com/synodriver/lua-bz3
bz3 bzip3 compression lua
Last synced: 30 days ago
JSON representation
simple lua binding for bzip3
- Host: GitHub
- URL: https://github.com/synodriver/lua-bz3
- Owner: synodriver
- Created: 2022-10-30T14:31:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-13T04:32:41.000Z (about 1 year ago)
- Last Synced: 2024-11-03T20:26:11.906Z (3 months ago)
- Topics: bz3, bzip3, compression, lua
- Language: C
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# simple lua binding for [bzip3](https://github.com/kspalaiologos/bzip3) 's high-level api
### usage
```lua
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)
```