MCPcopy Create free account
hub / github.com/apache/paimon-rust / int_cmp

Function int_cmp

crates/paimon/src/btree/tests.rs:29–33  ·  view source on GitHub ↗
(a: &[u8], b: &[u8])

Source from the content-addressed store, hash-verified

27}
28
29fn int_cmp(a: &[u8], b: &[u8]) -> std::cmp::Ordering {
30 let a_val = i32::from_be_bytes(a.try_into().unwrap());
31 let b_val = i32::from_be_bytes(b.try_into().unwrap());
32 a_val.cmp(&b_val)
33}
34
35/// Helper: write entries, finish, then open a reader from the in-memory bytes.
36async fn write_and_open<F: Fn(&[u8], &[u8]) -> std::cmp::Ordering>(

Callers

nothing calls this directly

Calls 1

cmpMethod · 0.80

Tested by

no test coverage detected