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

Method resize

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

Source from the content-addressed store, hash-verified

171 /// growing it (potentially reallocating it) and writing `false` in the newly available bits.
172 #[inline]
173 pub fn resize(&mut self, len: usize) {
174 match len.checked_sub(self.len) {
175 Some(delta) => self.advance(delta),
176 None => self.truncate(len),
177 }
178 }
179
180 /// Appends a boolean `v` into the buffer
181 #[inline]

Callers 4

advanceMethod · 0.45
append_nMethod · 0.45
test_truncateFunction · 0.45

Calls 3

checked_subMethod · 0.45
advanceMethod · 0.45
truncateMethod · 0.45

Tested by 2

test_truncateFunction · 0.36