-
How does the storage size affect how As an example, in the below snippet, a 22 bit vector is separated into two groups of 11 bits. Each of these groups has the same pattern, storing the decimal number 1027. let vec22 = bitvec![u8 /* usize */, Msb0; 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, /* next */ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]; // 1027, 1027
let chunks = vec22.chunks(11);
let numbers = chunks
.into_iter()
.map(|chunk| {
let number: usize = chunk.load();
println!("{} {}", chunk, number);
number
})
.collect::<Vec<_>>(); When the storage size is
How does changing the storage size affect these numbers? |
Beta Was this translation helpful? Give feedback.
Answered by
aryzing
May 18, 2023
Replies: 1 comment
Answer selected by
aryzing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/a/76277203/1494725