Crates.io | huff |
lib.rs | huff |
version | 1.0.6 |
source | src |
created_at | 2021-01-20 11:05:22.688699 |
updated_at | 2021-03-03 09:08:25.332962 |
description | Example compression/decompression CLI software based on the huff_coding crate |
homepage | |
repository | https://github.com/kxlsx/huffman-coding-rs/tree/master/huff |
max_upload_size | |
id | 344355 |
size | 26,698 |
Example compression/decompression CLI software based on the huff_coding crate.
huff [FLAGS] [OPTIONS] <SRC_FILE> [DST_FILE]
<SRC_FILE>
<DST_FILE> [default: ./SRC_FILE.hff]
-b, --block-size <SIZE>
Set how many bytes can be loaded from the file at one time
Possible units:
K/Ki -> Kilobytes/Kibibytes
M/Mi -> Megabytes/Mebibytes
G/Gi -> Gigabytes/Gibibytes
[default: 2G]
-d, --decompress
Decompresses the hff SRC_FILE into DST_FILE.hff
-n, --noask
Omits asking if should replace existing DST_FILE
-r, --replace
Deletes SRC_FILE upon completion
-t, --time
Prints how long it took to finish
-h, --help
Prints help information
-V, --version
Prints version information
The hff file format is encoded as follows:
HuffTree
's padding bitsHuffTree
HuffTree
, used to compress the file,
represented in binary (see HuffTree::try_from_bin
)