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

Method with_archive_size

atomic-repository/src/archive.rs:604–610  ·  view source on GitHub ↗

Set the archive size and compute compression ratio.

(mut self, size: u64)

Source from the content-addressed store, hash-verified

602
603 /// Set the archive size and compute compression ratio.
604 pub fn with_archive_size(mut self, size: u64) -> Self {
605 self.archive_size = size;
606 if self.manifest.total_size > 0 {
607 self.compression_ratio = Some(size as f64 / self.manifest.total_size as f64);
608 }
609 self
610 }
611
612 /// Set the duration.
613 pub fn with_duration(mut self, ms: u64) -> Self {

Callers 3

archiveMethod · 0.80

Calls

no outgoing calls

Tested by 2