Dandandan commented on code in PR #9151:
URL: https://github.com/apache/arrow-rs/pull/9151#discussion_r2690229228
##########
arrow-buffer/src/buffer/boolean.rs:
##########
@@ -366,6 +366,20 @@ impl BooleanBuffer {
.count_set_bits_offset(self.bit_offset, self.bit_len)
}
+ /// Finds the position of the n-th set bit (1-based) starting from `start`
index.
+ /// If fewer than `n` set bits are found, returns the length of the buffer.
+ pub fn find_nth_set_bit_position(self, start: usize, n: usize) -> usize {
Review Comment:
Hm owned self shouldn't be needed indeed!
--
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]