Returns the number of set bits in this buffer
(&self)
| 436 | |
| 437 | /// Returns the number of set bits in this buffer |
| 438 | pub fn count_set_bits(&self) -> usize { |
| 439 | self.buffer |
| 440 | .count_set_bits_offset(self.bit_offset, self.bit_len) |
| 441 | } |
| 442 | |
| 443 | /// Finds the position of the n-th set bit (1-based) starting from `start` index. |
| 444 | /// If fewer than `n` set bits are found, returns the length of the buffer. |
no test coverage detected