Skip to content

A crate aims to resolve small bits values storage and operations problem.

License

MIT and 2 other licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

zitsen/nbits_vec.rs

nbits_vec

travis-badge release-badge downloads docs-badge license-badge

A crate aims to resolve small bits values storage and operations problem.

Small bits values will be stored in a vector of Block - which is a PrimInt in memory. Here, we only consider the case that one Block will store some of the small bits values, such as 1, 2, 3, 4, 5 bits stored in u8, u16, u32, u64.

WARN: In this crate, I(@zitsen) decided to use RawVec from unstable alloc crate as vector background, which means the API would only be avaliable in nightly version of Rust and that the API might be changed in some time the alloc API changed. So a stable version may never give out.

See usage in struct documentation.

About

A crate aims to resolve small bits values storage and operations problem.

Resources

License

MIT and 2 other licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages