We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bits
1 parent 9e99e01 commit 7d1aba1Copy full SHA for 7d1aba1
git-bitmap/src/lib.rs
@@ -50,12 +50,13 @@ pub mod ewah {
50
}
51
52
let (rlw, data) = decode::u32(data).ok_or(decode::Error::Corrupt("eof while reading run length width"))?;
53
+ dbg!(rlw);
54
55
Ok((
56
Vec {
57
num_bits,
58
bits: buf,
- rlw,
59
+ rlw: rlw as usize,
60
},
61
data,
62
))
@@ -66,6 +67,7 @@ pub mod ewah {
66
67
pub struct Vec {
68
num_bits: u32,
69
bits: std::vec::Vec<u64>,
- rlw: u32,
70
+ /// RLW is an offset into the `bits` buffer, so `1` translates into &bits[1] essentially.
71
+ rlw: usize,
72
73
0 commit comments