MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / fnv_hash_bytes

Function fnv_hash_bytes

build.rs:145–150  ·  view source on GitHub ↗
(hash: &mut u64, bytes: &[u8])

Source from the content-addressed store, hash-verified

143}
144
145fn fnv_hash_bytes(hash: &mut u64, bytes: &[u8]) {
146 for byte in bytes {
147 *hash ^= u64::from(*byte);
148 *hash = hash.wrapping_mul(FNV_PRIME);
149 }
150}
151
152fn normalized_dashboard_source_path(path: &Path) -> String {
153 path.to_string_lossy().replace('\\', "/")

Callers 1

dashboard_source_stampFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected