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

Method advance

arrow-buffer/src/builder/boolean.rs:129–136  ·  view source on GitHub ↗
(&mut self, additional: usize)

Source from the content-addressed store, hash-verified

127 /// Advances the buffer by `additional` bits
128 #[inline]
129 pub fn advance(&mut self, additional: usize) {
130 let new_len = self.len + additional;
131 let new_len_bytes = bit_util::ceil(new_len, 8);
132 if new_len_bytes > self.buffer.len() {
133 self.buffer.resize(new_len_bytes, 0);
134 }
135 self.len = new_len;
136 }
137
138 /// Truncates the builder to the given length
139 ///

Callers 6

resizeMethod · 0.45
appendMethod · 0.45
append_nMethod · 0.45
append_sliceMethod · 0.45
append_packed_rangeMethod · 0.45
test_truncateFunction · 0.45

Calls 3

ceilFunction · 0.50
lenMethod · 0.45
resizeMethod · 0.45

Tested by 1

test_truncateFunction · 0.36