MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / slices_eq

Function slices_eq

src/extraction_worker.rs:514–523  ·  view source on GitHub ↗
(a: &[u8], b: &[u8])

Source from the content-addressed store, hash-verified

512}
513
514fn slices_eq(a: &[u8], b: &[u8]) -> bool {
515 if a.len() != b.len() {
516 return false;
517 }
518 let mut acc = 0u8;
519 for (x, y) in a.iter().zip(b.iter()) {
520 acc |= x ^ y;
521 }
522 acc == 0
523}
524
525// =============================================================================
526// Tests

Callers 1

worker_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected