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

Function equals_bytes

arrow-string/src/predicate.rs:205–207  ·  view source on GitHub ↗
(lhs: &[u8], rhs: &[u8], byte_eq_kernel: impl Fn((&u8, &u8)) -> bool)

Source from the content-addressed store, hash-verified

203}
204
205fn equals_bytes(lhs: &[u8], rhs: &[u8], byte_eq_kernel: impl Fn((&u8, &u8)) -> bool) -> bool {
206 lhs.len() == rhs.len() && zip(lhs, rhs).all(byte_eq_kernel)
207}
208
209/// This is faster than `str::starts_with` for small strings.
210/// See <https://github.com/apache/arrow-rs/issues/6107> for more details.

Callers 1

evaluate_arrayMethod · 0.70

Calls 3

zipFunction · 0.85
allMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected