MCPcopy Index your code
hub / github.com/RustPython/RustPython / hash_object_id

Function hash_object_id

crates/common/src/hash.rs:179–181  ·  view source on GitHub ↗
(p: usize)

Source from the content-addressed store, hash-verified

177
178#[inline]
179pub const fn hash_object_id(p: usize) -> PyHash {
180 fix_sentinel(hash_object_id_raw(p))
181}
182
183pub fn keyed_hash(key: u64, buf: &[u8]) -> u64 {
184 let mut hasher = SipHasher24::new_with_keys(key, 0);

Callers 2

hashMethod · 0.85
hashMethod · 0.85

Calls 2

fix_sentinelFunction · 0.85
hash_object_id_rawFunction · 0.85

Tested by

no test coverage detected