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

Method new_from_buffer

arrow-buffer/src/builder/null.rs:90–100  ·  view source on GitHub ↗

Creates a new builder from a `MutableBuffer`.

(buffer: MutableBuffer, len: usize)

Source from the content-addressed store, hash-verified

88
89 /// Creates a new builder from a `MutableBuffer`.
90 pub fn new_from_buffer(buffer: MutableBuffer, len: usize) -> Self {
91 let capacity = buffer.len() * 8;
92 assert!(len <= capacity);
93
94 let bitmap_builder = Some(BooleanBufferBuilder::new_from_buffer(buffer, len));
95 Self {
96 bitmap_builder,
97 len,
98 capacity,
99 }
100 }
101
102 /// Appends `n` `true`s into the builder
103 /// to indicate that these `n` items are not nulls.

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected