Returns the number of 1-bits in this buffer, starting from `offset` with `length` bits inspected. Note that both `offset` and `length` are measured in bits.
(&self, offset: usize, len: usize)
| 355 | /// Returns the number of 1-bits in this buffer, starting from `offset` with `length` bits |
| 356 | /// inspected. Note that both `offset` and `length` are measured in bits. |
| 357 | pub fn count_set_bits_offset(&self, offset: usize, len: usize) -> usize { |
| 358 | UnalignedBitChunk::new(self.as_slice(), offset, len).count_ones() |
| 359 | } |
| 360 | |
| 361 | /// Returns `MutableBuffer` for mutating the buffer if this buffer is not shared. |
| 362 | /// Returns `Err` if this is shared or its allocation is from an external source or |
no test coverage detected