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

Function buffer_unary_not

arrow-buffer/src/buffer/ops.rs:261–263  ·  view source on GitHub ↗

Apply a bitwise not 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. # See Also [`BooleanBuffer::from_bitwise_unary_op`] for creating `BooleanBuffer`s directly

(left: &Buffer, offset_in_bits: usize, len_in_bits: usize)

Source from the content-addressed store, hash-verified

259/// # See Also
260/// * [`BooleanBuffer::from_bitwise_unary_op`] for creating `BooleanBuffer`s directly
261pub fn buffer_unary_not(left: &Buffer, offset_in_bits: usize, len_in_bits: usize) -> Buffer {
262 BooleanBuffer::from_bitwise_unary_op(left, offset_in_bits, len_in_bits, |a| !a).into_inner()
263}
264
265#[cfg(test)]
266mod tests {

Callers 2

bench_buffer_notFunction · 0.85

Calls 1

into_innerMethod · 0.45

Tested by

no test coverage detected