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

Method new_set

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

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

(length: usize)

Source from the content-addressed store, hash-verified

138
139 /// Create a new [`BooleanBuffer`] of `length` bits (not bytes) where all values are `true`
140 pub fn new_set(length: usize) -> Self {
141 let mut builder = BooleanBufferBuilder::new(length);
142 builder.append_n(length, true);
143 builder.finish()
144 }
145
146 /// Create a new [`BooleanBuffer`] of `length` bits (not bytes) where all values are `false`
147 pub fn new_unset(length: usize) -> Self {

Callers

nothing calls this directly

Calls 2

append_nMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected