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

Method hash_set

atomic-remote/src/streaming/layers.rs:306–308  ·  view source on GitHub ↗

Returns a set of all chunk hashes in this manifest. Used for quick "do I have this?" lookups during negotiation.

(&self)

Source from the content-addressed store, hash-verified

304 ///
305 /// Used for quick "do I have this?" lookups during negotiation.
306 pub fn hash_set(&self) -> HashSet<[u8; 32]> {
307 self.entries.iter().map(|e| e.hash).collect()
308 }
309
310 /// Find a chunk entry by its hash.
311 ///

Callers 1

test_manifest_hash_setFunction · 0.80

Calls 2

collectMethod · 0.45
iterMethod · 0.45

Tested by 1

test_manifest_hash_setFunction · 0.64