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

Method deleted_bytes

atomic-core/src/diff/inline.rs:465–471  ·  view source on GitHub ↗

Get the total number of bytes that were deleted.

(&self)

Source from the content-addressed store, hash-verified

463
464 /// Get the total number of bytes that were deleted.
465 pub fn deleted_bytes(&self) -> usize {
466 self.old_hunks
467 .iter()
468 .filter(|s| s.is_change())
469 .map(|s| s.len())
470 .sum()
471 }
472
473 /// Get the total number of bytes that were inserted.
474 pub fn inserted_bytes(&self) -> usize {

Callers

nothing calls this directly

Calls 3

iterMethod · 0.45
is_changeMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected