hash

package module
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2025 License: MIT Imports: 0 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

type BHasher32 interface {
	Sum32([]byte) uint32
}

BHasher32 describes uint32 hash generation from given bytes. DEPRECATED: use Hasher32 instead.

type BHasher64

type BHasher64 interface {
	Sum64([]byte) uint64
}

BHasher64 describes uint64 hash generation from given bytes. DEPRECATED: use Hasher64 instead.

type Hasher

type Hasher[T byteseq] Hasher64[T]

Hasher is a shorthand alias of Hasher64.

type Hasher32

type Hasher32[T byteseq] interface {
	Sum32(T) uint32
}

Hasher32 describes uint32 hash generator.

func WrapFunc32 added in v1.0.5

func WrapFunc32[T byteseq](fn func(data T) uint32) Hasher32[T]

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

func WrapFunc64[T byteseq](fn func(data T) uint64) Hasher64[T]

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.

Directories

Path Synopsis
murmur
v1
v2
v3

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址