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

Method finish

arrow-buffer/src/builder/boolean.rs:271–275  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

269 /// Use [`Self::build`] when you don't need to reuse this builder.
270 #[inline]
271 pub fn finish(&mut self) -> BooleanBuffer {
272 let buf = std::mem::replace(&mut self.buffer, MutableBuffer::new(0));
273 let len = std::mem::replace(&mut self.len, 0);
274 BooleanBuffer::new(buf.into(), 0, len)
275 }
276
277 /// Builds a [`BooleanBuffer`] without resetting the builder.
278 ///

Callers 7

test_bool_buffer_fuzzFunction · 0.45
test_truncateFunction · 0.45
test_extendFunction · 0.45
test_extend_misalignedFunction · 0.45

Calls

no outgoing calls

Tested by 7

test_bool_buffer_fuzzFunction · 0.36
test_truncateFunction · 0.36
test_extendFunction · 0.36
test_extend_misalignedFunction · 0.36