Create a new manifest entry.
(
index: u32,
hash: [u8; 32],
compressed_size: u32,
uncompressed_size: u32,
)
| 123 | impl 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected