Find a chunk entry by its hash. Returns `None` if no chunk with the given hash exists.
(&self, hash: &[u8; 32])
| 311 | /// |
| 312 | /// Returns `None` if no chunk with the given hash exists. |
| 313 | pub fn find_by_hash(&self, hash: &[u8; 32]) -> Option<&ChunkManifestEntry> { |
| 314 | self.entries.iter().find(|e| &e.hash == hash) |
| 315 | } |
| 316 | |
| 317 | /// Find a chunk entry by its index. |
| 318 | /// |