arrow::util::bit_util
pub fn count_set_bits(data: &[u8]) -> usize
Returns the number of 1-bits in data
data