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

Method update_largest_file

atomic-core/src/record/builder.rs:368–370  ·  view source on GitHub ↗

Update the largest file size if this file is larger. # Arguments `size` - The file size in bytes

(&mut self, size: u64)

Source from the content-addressed store, hash-verified

366 ///
367 /// * `size` - The file size in bytes
368 pub fn update_largest_file(&mut self, size: u64) {
369 self.largest_file = self.largest_file.max(size);
370 }
371
372 /// Get the largest file size encountered.
373 pub fn largest_file(&self) -> u64 {

Callers 4

test_update_largest_fileFunction · 0.80
test_finish_with_dataFunction · 0.80
test_clearFunction · 0.80
test_stats_populatedFunction · 0.80

Calls

no outgoing calls

Tested by 4

test_update_largest_fileFunction · 0.64
test_finish_with_dataFunction · 0.64
test_clearFunction · 0.64
test_stats_populatedFunction · 0.64