Create a new [`NullBuffer`] computing the null count
(buffer: BooleanBuffer)
| 39 | impl NullBuffer { |
| 40 | /// Create a new [`NullBuffer`] computing the null count |
| 41 | pub fn new(buffer: BooleanBuffer) -> Self { |
| 42 | let null_count = buffer.len() - buffer.count_set_bits(); |
| 43 | Self { buffer, null_count } |
| 44 | } |
| 45 | |
| 46 | /// Create a new [`NullBuffer`] of length `len` where all values are null |
| 47 | pub fn new_null(len: usize) -> Self { |
nothing calls this directly
no test coverage detected