Skip to content

KvConfigHash

KvConfigHash

Description

Hash a Str for use as config key.

Parameters

Name Direction Description
data in Pointer to Str.
size in Ignored. Included for generic hash compatibility.

Success

Stable hash of the string bytes.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    u64 KvConfigHash(const void *data, u32 ignored_size) {
        const Str *str  = data;
        u64        hash = 1469598103934665603ULL;
    #define KvConfigInit()                                                                                                 \
        MapInitWithDeepCopyAndValueCompare(                                                                                \
            KvConfigHash,                                                                                                  \
            KvConfigCompare,                                                                                               \
            KvConfigCompare,                                                                                               \
Last updated on