Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BHasher ¶
type BHasher BHasher64
BHasher is a shorthand alias of BHasher64. DEPRECATED: use Hasher instead.
type BHasher32 ¶
BHasher32 describes uint32 hash generation from given bytes. DEPRECATED: use Hasher32 instead.
type BHasher64 ¶
BHasher64 describes uint64 hash generation from given bytes. DEPRECATED: use Hasher64 instead.
type Hasher32 ¶
type Hasher32[T byteseq] interface {
Sum32(T) uint32
}
Hasher32 describes uint32 hash generator.
func WrapFunc32 ¶ added in v1.0.5
WrapFunc32 makes Hasher32 over given fn.
type Hasher64 ¶
type Hasher64[T byteseq] interface {
Sum64(T) uint64
}
Hasher64 describes uint64 hash generator.
func WrapFunc64 ¶ added in v1.0.5
WrapFunc64 makes Hasher64 over given fn.
type Hasher128x64 ¶ added in v1.0.5
type Hasher128x64[T byteseq] interface {
Sum128(T) [2]uint64
}
Hasher128x64 describes uint128([2]uint64) hash generator.
func WrapFunc128 ¶ added in v1.0.5
func WrapFunc128[T byteseq](fn func(data T) [2]uint64) Hasher128x64[T]
WrapFunc128 makes Hasher128 over given fn.
type Hasher128x86 ¶ added in v1.0.5
type Hasher128x86[T byteseq] interface {
Sum128(T) [4]uint32
}
Hasher128x86 describes uint128([4]uint32) hash generator.
type Hasher256x64 ¶ added in v1.0.5
type Hasher256x64[T byteseq] interface {
Sum256(T) [4]uint64
}
Hasher256x64 describes uint256([4]uint64) hash generator.
func WrapFunc256 ¶ added in v1.0.5
func WrapFunc256[T byteseq](fn func(data T) [4]uint64) Hasher256x64[T]
WrapFunc256 makes Hasher256 over given fn.