tustvold commented on a change in pull request #1183:
URL: https://github.com/apache/arrow-rs/pull/1183#discussion_r785417604
##########
File path: arrow/src/array/builder.rs
##########
@@ -367,6 +367,14 @@ impl BooleanBufferBuilder {
}
}
+ /// Resizes the buffer, either truncating its contents (with no change in
capacity), or
+ /// growing it (potentially reallocating it) and writing `false` in the
newly available bits.
+ #[inline]
+ pub fn resize(&mut self, len: usize) {
+ let len_bytes = bit_util::ceil(len, 8);
+ self.buffer.resize(len_bytes, 0)
Review comment:
Oh yes :facepalm:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]