1 stable release
2.0.1 | Oct 14, 2024 |
---|---|
1.0.0 |
|
#12 in #lz77
8KB
146 lines
Yet Another LZ77 Compression Algorithm
A small library providing basic compression and decompression of data using the LZ77 compression algorithm.
Usage
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);
}