Crates.io | minilzo-rs |
lib.rs | minilzo-rs |
version | 0.6.1 |
source | src |
created_at | 2020-05-13 10:10:20.990829 |
updated_at | 2023-12-07 06:57:22.046959 |
description | A pure rust implementation bound to the C version of minilzo. |
homepage | |
repository | https://github.com/gmg137/minilzo-rs |
max_upload_size | |
id | 241055 |
size | 413,962 |
A pure rust implementation bound to the C version of minilzo.
// test compress
let mut lzo = minilzo_rs::LZO::init().unwrap();
let input = [0x00u8; 1024];
let out = lzo.compress(&input).unwrap();
// test decompress
let input = lzo.decompress_safe(&out[..], 1024);
let input = input.unwrap();
assert_eq!(input.len(), 1024);
This project's source code and documentation is licensed under the GNU General Public License (GPL v3).
LZO itself is licensed under the terms of the GNU General Public License (GPL v2+).