kartta-lang-python 0.0.0

Python extraction for the kartta code graph: functions, classes, fields, calls and imports
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub(crate) const FNV_OFFSET: u64 = 0xcbf2_9ce4_8422_2325;

pub(crate) const fn fnv(mut digest: u64, bytes: &[u8]) -> u64 {
    const PRIME: u64 = 0x0000_0100_0000_01b3;

    let mut at = 0;
    while at < bytes.len() {
        digest ^= bytes[at] as u64;
        digest = digest.wrapping_mul(PRIME);
        at += 1;
    }

    digest
}