rluvaton commented on code in PR #11196:
URL: https://github.com/apache/arrow-rs/pull/11196#discussion_r4114363522
##########
arrow-buffer/src/builder/boolean.rs:
##########
@@ -312,6 +312,27 @@ impl BooleanBufferBuilder {
self.append_packed_range(range, buffer.values())
}
+ /// Copies bits `src` of `data` to position `dest`
+ ///
+ /// # Arguments
+ /// * `src` - The source range of bits to copy
+ /// * `dest` - The destination bit index to copy to
+ ///
+ /// # Example
+ /// ```
+ /// # use arrow_buffer::BooleanBufferBuilder;
+ /// let mut builder = BooleanBufferBuilder::new(0);
+ /// builder.append_slice(&[true, false, false, false, false, true]);
+ /// // Copy values 4.. to position 1
+ /// builder.copy_within(4.., 1);
+ ///
+ /// let output = builder.build().iter().collect::<Vec<_>>();
+ /// assert_eq!(output, vec![true, false, true, false, false, true]);
+ /// ```
+ pub fn copy_within<R: RangeBounds<usize>>(&mut self, src: R, dest: usize) {
Review Comment:
I see that ArrowError is not available in this crate
--
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]