Crates.io | fibonacci_codec |
lib.rs | fibonacci_codec |
version | 0.2.0 |
source | src |
created_at | 2018-04-05 23:40:05.440327 |
updated_at | 2021-05-01 18:12:22.824103 |
description | Implementation of fibonacci coding for primitive integer types |
homepage | |
repository | https://github.com/antifuchs/fibonacci_codec |
max_upload_size | |
id | 59177 |
size | 41,345 |
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.
Due to the way the coding scheme works, the number 0
can't be
encoded.