yalz77

Crates.ioyalz77
lib.rsyalz77
version2.0.1
sourcesrc
created_at2024-10-14 22:21:21.495292
updated_at2024-10-14 23:57:24.849526
descriptionA small library providing basic compression and decompression of data using the LZ77 compression algorithm.
homepage
repositoryhttps://github.com/p0rtL6/yalz77
max_upload_size
id1408749
size7,361
(p0rtL6)

documentation

README

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);
}
Commit count: 0

cargo fmt