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

Function equal_bits

arrow-data/src/equal/utils.rs:25–35  ·  view source on GitHub ↗
(
    lhs_values: &[u8],
    rhs_values: &[u8],
    lhs_start: usize,
    rhs_start: usize,
    len: usize,
)

Source from the content-addressed store, hash-verified

23// `lhs_start`, `rhs_start` and `len` are _measured in bits_.
24#[inline]
25pub(super) fn equal_bits(
26 lhs_values: &[u8],
27 rhs_values: &[u8],
28 lhs_start: usize,
29 rhs_start: usize,
30 len: usize,
31) -> bool {
32 let lhs = BitChunks::new(lhs_values, lhs_start, len).iter_padded();
33 let rhs = BitChunks::new(rhs_values, rhs_start, len).iter_padded();
34 lhs.zip(rhs).all(|(a, b)| a == b)
35}
36
37#[inline]
38pub(super) fn equal_nulls(

Callers 2

equal_nullsFunction · 0.85
boolean_equalFunction · 0.85

Calls 3

iter_paddedMethod · 0.80
allMethod · 0.80
zipMethod · 0.80

Tested by

no test coverage detected