(bytes: &[u8])
| 179 | |
| 180 | #[inline] |
| 181 | pub fn hash64_bytes(bytes: &[u8]) -> u64 { |
| 182 | let mut hash = FNV1A_OFFSET64; |
| 183 | for &byte in bytes { |
| 184 | hash ^= byte as u64; |
| 185 | hash = hash.wrapping_mul(FNV1A_PRIME64); |
| 186 | } |
| 187 | hash64_u64(hash ^ bytes.len() as u64) |
| 188 | } |
| 189 | |
| 190 | #[inline] |
| 191 | pub fn hash64_str(value: &str) -> u64 { |
no test coverage detected