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

Method append_slice

arrow-buffer/src/builder/boolean.rs:216–226  ·  view source on GitHub ↗
(&mut self, slice: &[bool])

Source from the content-addressed store, hash-verified

214 /// Appends a slice of booleans into the buffer
215 #[inline]
216 pub fn append_slice(&mut self, slice: &[bool]) {
217 let additional = slice.len();
218 self.advance(additional);
219
220 let offset = self.len() - additional;
221 for (i, v) in slice.iter().enumerate() {
222 if *v {
223 unsafe { bit_util::set_bit_raw(self.buffer.as_mut_ptr(), offset + i) }
224 }
225 }
226 }
227
228 /// Append `range` bits from `to_set`
229 ///

Callers 2

test_bool_buffer_fuzzFunction · 0.45

Calls 5

set_bit_rawFunction · 0.85
as_mut_ptrMethod · 0.80
lenMethod · 0.45
advanceMethod · 0.45
iterMethod · 0.45

Tested by 2

test_bool_buffer_fuzzFunction · 0.36