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

Method new

arrow-buffer/src/buffer/null.rs:41–44  ·  view source on GitHub ↗

Create a new [`NullBuffer`] computing the null count

(buffer: BooleanBuffer)

Source from the content-addressed store, hash-verified

39impl 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 {

Callers

nothing calls this directly

Calls 2

count_set_bitsMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected