MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / content_identical

Function content_identical

atomic-core/src/record/workflow/compare.rs:433–435  ·  view source on GitHub ↗

Check if content is identical (byte-for-byte). # Arguments `old_content` - Old content bytes `new_content` - New content bytes # Returns `true` if the content is byte-for-byte identical.

(old_content: &[u8], new_content: &[u8])

Source from the content-addressed store, hash-verified

431///
432/// `true` if the content is byte-for-byte identical.
433pub fn content_identical(old_content: &[u8], new_content: &[u8]) -> bool {
434 old_content == new_content
435}
436
437// ============================================================================
438// TESTS

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected