arrow_buffer::buffer::ops

Function bitwise_unary_op_helper

Source
pub fn bitwise_unary_op_helper<F>(
    left: &Buffer,
    offset_in_bits: usize,
    len_in_bits: usize,
    op: F,
) -> Buffer
where F: FnMut(u64) -> u64,
Expand description

Apply a bitwise operation op to one input and return the result as a Buffer. The input is treated as a bitmap, meaning that offset and length are specified in number of bits.