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

Method new

atomic-remote/src/streaming/types.rs:125–137  ·  view source on GitHub ↗

Create a new manifest entry.

(
        index: u32,
        hash: [u8; 32],
        compressed_size: u32,
        uncompressed_size: u32,
    )

Source from the content-addressed store, hash-verified

123impl ChunkManifestEntry {
124 /// Create a new manifest entry.
125 pub const fn new(
126 index: u32,
127 hash: [u8; 32],
128 compressed_size: u32,
129 uncompressed_size: u32,
130 ) -> Self {
131 Self {
132 index,
133 hash,
134 compressed_size,
135 uncompressed_size,
136 }
137 }
138
139 /// Returns the compression ratio (compressed / uncompressed).
140 pub fn compression_ratio(&self) -> f64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected