fibonacci_codec

Crates.iofibonacci_codec
lib.rsfibonacci_codec
version0.2.0
sourcesrc
created_at2018-04-05 23:40:05.440327
updated_at2021-05-01 18:12:22.824103
descriptionImplementation of fibonacci coding for primitive integer types
homepage
repositoryhttps://github.com/antifuchs/fibonacci_codec
max_upload_size
id59177
size41,345
Andreas Fuchs (antifuchs)

documentation

https://docs.rs/fibonacci_codec

README

Fibonacci coding for primitive integers in Rust

This crate implements the Fibonacci coding technique for storing integers as variable bit length code words. It implements an encoder consuming an interator over various primitive unsigned integer types (u8 through u64), and a decoder to reverse the process.

Restrictions

Due to the way the coding scheme works, the number 0 can't be encoded.

Commit count: 98

cargo fmt