MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / hash

Function hash

rust/stringzilla.rs:1317–1322  ·  view source on GitHub ↗
(text: T)

Source from the content-addressed store, hash-verified

1315/// A `u64` representing the hash value of the input byte slice.
1316#[inline(always)]
1317pub fn hash<T>(text: T) -> u64
1318where
1319 T: AsRef<[u8]>,
1320{
1321 hash_with_seed(text, 0)
1322}
1323
1324/// Locates the first matching substring within `haystack` that equals `needle`.
1325/// This function is similar to the `memmem()` function in LibC, but, unlike `strstr()`,

Callers 5

hmac_sha256Function · 0.70
sz_hashMethod · 0.70
sha256_emptyFunction · 0.70
sha256_abcFunction · 0.70
sha256_longFunction · 0.70

Calls 2

hash_with_seedFunction · 0.85
iterMethod · 0.80

Tested by 3

sha256_emptyFunction · 0.56
sha256_abcFunction · 0.56
sha256_longFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…