bitvec
bitvec copied to clipboard
A crate for managing memory bit by bit
Let's say I'm storing two values in a BitVec. The first value is a single bit (U1), the second value is a 2-byte array. This leaves me with 17 bits...
Found within https://github.com/sharksforarms/deku/issues/266, but first found in bitvec. ``` $ MIRIFLAGS="-Zmiri-strict-provenance" cargo miri test test array::tests::format::render ... error: unsupported operation: integer-to-pointer casts and `ptr::from_exposed_addr` are not supported with `-Zmiri-strict-provenance` -->...
Hello, one common use-case I face when using `bitvec` is having a collection of bitstrings that I need to concatenate together. It would be nice if `BitVec` reflected `Vec`'s and...
I believe that BitVec provides all the necessary functionality to implement a BitSet wrapper, in a way that would be reasonably convenient. * Inserting an element -- resize (inserting 0)...
It appears the documentation for shift_left/shift_right is wrong AND that they work backwards of expectations if you weren't reading the docs fully. The documentation says that shift_left shifts down towards...
I am just trying to create a big-endian array of bytes from bits. The similar crate, `bit-vec` has `.to_be_bytes()`, but I see no convenient way of converting a `BitVec` into...
I am unable to get this crate to compile in a `#![no_std]` environment due to the linker failing to locate various floating point functions provided by libm. Here is my...
In these function you use the unsafe keyword for some safe expressions. However, I found that only 3 functions are real unsafe operations (see the list below). We need to...
Trying create equivalent array or slice with BitVec ``` const MAX_SIZE_SIEVE: usize = 1000_000_000; sieve: vec![false; MAX_SIZE_SIEVE].into_boxed_slice(), ``` by `sieve: bitvec![0; MAX_SIZE_SIEVE].into_boxed_slice(),` but then I get an stack overflow runtime...