MCPcopy Create free account
hub / github.com/apache/arrow-rs / count_set_bits

Method count_set_bits

arrow-buffer/src/buffer/boolean.rs:438–441  ·  view source on GitHub ↗

Returns the number of set bits in this buffer

(&self)

Source from the content-addressed store, hash-verified

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.

Callers 13

newMethod · 0.80
filter_countFunction · 0.80
masked_bytesFunction · 0.80
consume_batchMethod · 0.80
lenMethod · 0.80
true_countMethod · 0.80

Calls 1

count_set_bits_offsetMethod · 0.80

Tested by

no test coverage detected