mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
adding result points to sampler
This commit is contained in:
@@ -83,6 +83,14 @@ impl BitArray {
|
||||
(self.bits[i / 32] & (1 << (i & 0x1F))) != 0
|
||||
}
|
||||
|
||||
pub fn try_get(&self, i:usize) -> Option<bool> {
|
||||
if (i / 32) >= self.bits.len() {
|
||||
None
|
||||
}else {
|
||||
Some(self.get(i))
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bit i.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user