hash.fnv1a #
fn sum32 #
fn sum32(data []u8) u32
sum32 returns a fnv1a hash of the memory block, described by the dynamic byte array data
.
fn sum32_bytes #
unsafe
fn sum32_bytes(data &u8, data_len int) u32
sum32_bytes returns a fnv1a hash of data_len
bytes starting at the address in the given &byte pointer data
.
fn sum32_string #
fn sum32_string(data string) u32
sum32 returns a fnv1a hash of the string, described by data
fn sum32_struct #
fn sum32_struct[T](s &T) u32
sum32_bytes returns a fnv1a hash of the struct s
.
fn sum64 #
fn sum64(data []u8) u64
sum64 returns a fnv1a hash of the memory block, described by the dynamic byte array data
.
fn sum64_bytes #
unsafe
fn sum64_bytes(data &u8, data_len int) u64
sum64_bytes returns a fnv1a hash of data_len
bytes starting at the address in the given &byte pointer data
.
fn sum64_string #
fn sum64_string(data string) u64
sum64 returns a fnv1a hash of the string, described by data
fn sum64_struct #
fn sum64_struct[T](s &T) u64
sum64_bytes returns a fnv1a hash of the struct s
.