Crates.io | yalz77 |
lib.rs | yalz77 |
version | 2.0.1 |
source | src |
created_at | 2024-10-14 22:21:21.495292 |
updated_at | 2024-10-14 23:57:24.849526 |
description | A small library providing basic compression and decompression of data using the LZ77 compression algorithm. |
homepage | |
repository | https://github.com/p0rtL6/yalz77 |
max_upload_size | |
id | 1408749 |
size | 7,361 |
A small library providing basic compression and decompression of data using the LZ77 compression algorithm.
fn main() {
// Search buffer size | Lookahead buffer size
let lz77 = LZ77Compressor::new(6, 6);
let compressed_blocks = lz77.compress("ababcbababaa");
println!("{:?}", compressed_blocks);
let decompressed_bytes = LZ77::decompress(&compressed_blocks);
println!("{:?}", decompressed_bytes);
}