Module hash stdlib

hash
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
0
Imported by:
3
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

This section is empty.

Imported by

Overview

hash provides a way to hash binary data, i.e. produce a shorter value, that is highly content dependent, so even slightly different content will produce widely different hashes.

Hash functions are useful for implementing maps, caches etc.

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn sum64

inline
fn sum64(key []u8, seed u64) u64

sum64 returns a hash given a byte array key and a seed.

#fn sum64_string

JavaScript
fn sum64_string(s string, key u64) u64

#fn sum64_string

inline
fn sum64_string(key string, seed u64) u64

sum64_string returns a hash given a V string key and a seed.

#fn wyhash64_c

inline
fn wyhash64_c(a u64, b u64) u64

wyhash64_c returns a hash given two u64 values a and b.

#fn wyhash_c

inline
fn wyhash_c(key &u8, len u64, seed u64) u64

wyhash_c returns a hash given a byte string key, its len, and a seed.

#fn wymum

inline
fn wymum(a u64, b u64) u64

wymum returns a hash by performing multiply and mix on a and b.

Structs

This section is empty.

Interfaces

This section is empty.

Enums

This section is empty.