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

Method new_unset

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

Create a new [`BooleanBuffer`] of `length` bits (not bytes) where all values are `false`

(length: usize)

Source from the content-addressed store, hash-verified

145
146 /// Create a new [`BooleanBuffer`] of `length` bits (not bytes) where all values are `false`
147 pub fn new_unset(length: usize) -> Self {
148 let buffer = MutableBuffer::new_null(length).into_buffer();
149 Self {
150 buffer,
151 bit_offset: 0,
152 bit_len: length,
153 }
154 }
155
156 /// Invokes `f` with indexes `0..len` collecting the boolean results into a new `BooleanBuffer`
157 pub fn collect_bool<F: FnMut(usize) -> bool>(len: usize, f: F) -> Self {

Callers

nothing calls this directly

Calls 1

into_bufferMethod · 0.45

Tested by

no test coverage detected