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

Method append

arrow-buffer/src/builder/boolean.rs:182–187  ·  view source on GitHub ↗
(&mut self, v: bool)

Source from the content-addressed store, hash-verified

180 /// Appends a boolean `v` into the buffer
181 #[inline]
182 pub fn append(&mut self, v: bool) {
183 self.advance(1);
184 if v {
185 unsafe { bit_util::set_bit_raw(self.buffer.as_mut_ptr(), self.len - 1) };
186 }
187 }
188
189 /// Appends n `additional` bits of value `v` into the buffer
190 #[inline]

Calls 3

set_bit_rawFunction · 0.85
as_mut_ptrMethod · 0.80
advanceMethod · 0.45