(data: &[u8], i: usize)
| 38 | /// Returns whether bit at position `i` in `data` is set or not |
| 39 | #[inline] |
| 40 | pub fn get_bit(data: &[u8], i: usize) -> bool { |
| 41 | data[i / 8] & (1 << (i % 8)) != 0 |
| 42 | } |
| 43 | |
| 44 | /// Returns whether bit at position `i` in `data` is set or not. |
| 45 | /// |
no outgoing calls