base4 0.1.0

A portable base4 bit packing codec implementation.
Documentation
  • Coverage
  • 95%
    19 out of 20 items documented9 out of 19 items with examples
  • Size
  • Source code size: 24.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.78 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SyedAnees21

Base4

A simple and portable rust library for representing and manipulating large lists of base-4 integers packed into 128-bit blocks of bit-ints. It provides two main types:

  • Base4 : A fixed size buffer which can pack upto 64 base-4 integers into 128-bit block.
  • Base4Int: A dynamic sized buffer which can recursively store as many base-4 integers allowing arbitrary length base-4 numbers.

Installation

[dependencies]

base4 = { version = "0.1.0" }

Then start using it in your project:

use base4::Base4Int;

fn main() {
    let big_int = Base4Int::new();
    let large_base4_list = vec![2;100];

    debug_assert!(big_int.push_all(&large_base4_list));
}

License

This crate can be freely distributed under both licenses MIT or Apache-2.0.