#compressor #algorithm #stomper

libstomper

Library for stomper compression tool

2 unstable releases

0.2.0 Sep 6, 2019
0.1.0 Aug 11, 2019

#1073 in Compression

21 downloads per month
Used in stomper

MIT license

30KB
718 lines

libstomper is a collection of compression algorithms For claritys sake all algorithm are represented as structs that implement the Compressor trait. A compressor is only responsible for reading and writing data and


Build Status Coverage Status

Stomper

Käyttöohje vertaisarvioijalle

Dokumentaatio

Viikkoraportit

Asennus

  1. Seuraa rustin asennuohjeita rustin kotisivuilla
  2. Kloonaa stomper githubista.
  3. Aja cargo run kloonatussa kansiossa testataksesi käynnistyykö ohjelma. Terminaaliin pitäisi ilmestyä virheilmoitus puuttuvista parametreistä.

Käyttöohje

Ohjelmalle annetaan parametreinä pakkaustapa ja pakattava/purettava tiedosto

Esimerkki

pakkaa teksti.txt Lempel-Ziv-Welch algoritmillä tiedostoon pakattu.txt

cargo run lzw teksti.txt -o pakattu.txt

purkaa pakattu.txt tiedostoon purettu.txt

cargo run lzw pakattu.txt -d -o purettu.txt

pakkaa teksti.txt huffmanin algoritmillä

cargo run huff teksti.txt

Dependencies

~125KB