MCPcopy Create free account
hub / github.com/cosdata/cosdata / get_hash

Method get_hash

src/models/collection.rs:317–321  ·  view source on GitHub ↗

Computes the SipHash of the collection name

(&self)

Source from the content-addressed store, hash-verified

315
316 /// Computes the SipHash of the collection name
317 pub fn get_hash(&self) -> u64 {
318 let mut hasher = SipHasher24::new();
319 hasher.write(self.meta.name.as_bytes());
320 hasher.finish()
321 }
322
323 /// computes the key used to store the collection in the database
324 pub fn get_key(&self) -> [u8; 8] {

Callers 1

get_keyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected