ghash

原文:https://pkg.go.dev/github.com/gogf/gf/v2@v2.6.4/encoding/ghash

Package ghash provides some classic hash functions(uint32/uint64) in go.

​ 软件包 ghash 在 go 中提供了一些经典的哈希函数(uint32/uint64)。

常量

This section is empty.

变量

This section is empty.

函数

func AP

1
func AP(str []byte) uint32

AP implements the classic AP hash algorithm for 32 bits.

​ AP 实现了 32 位的经典 AP 哈希算法。

func AP64

1
func AP64(str []byte) uint64

AP64 implements the classic AP hash algorithm for 64 bits.

​ AP64 实现了 64 位的经典 AP 哈希算法。

func BKDR

1
func BKDR(str []byte) uint32

BKDR implements the classic BKDR hash algorithm for 32 bits.

​ BKDR 实现了 32 位的经典 BKDR 哈希算法。

func BKDR64

1
func BKDR64(str []byte) uint64

BKDR64 implements the classic BKDR hash algorithm for 64 bits.

​ BKDR64 实现了 64 位的经典 BKDR 哈希算法。

func DJB

1
func DJB(str []byte) uint32

DJB implements the classic DJB hash algorithm for 32 bits.

​ DJB 实现了 32 位的经典 DJB 哈希算法。

func DJB64

1
func DJB64(str []byte) uint64

DJB64 implements the classic DJB hash algorithm for 64 bits.

​ DJB64 实现了 64 位的经典 DJB 哈希算法。

func ELF

1
func ELF(str []byte) uint32

ELF implements the classic ELF hash algorithm for 32 bits.

​ ELF 实现了 32 位的经典 ELF 哈希算法。

func ELF64

1
func ELF64(str []byte) uint64

ELF64 implements the classic ELF hash algorithm for 64 bits.

​ ELF64 实现了 64 位的经典 ELF 哈希算法。

func JS

1
func JS(str []byte) uint32

JS implements the classic JS hash algorithm for 32 bits.

​ JS 实现了 32 位的经典 JS 哈希算法。

func JS64

1
func JS64(str []byte) uint64

JS64 implements the classic JS hash algorithm for 64 bits.

​ JS64 实现了 64 位的经典 JS 哈希算法。

func PJW

1
func PJW(str []byte) uint32

PJW implements the classic PJW hash algorithm for 32 bits.

​ PJW 实现了 32 位的经典 PJW 哈希算法。

func PJW64

1
func PJW64(str []byte) uint64

PJW64 implements the classic PJW hash algorithm for 64 bits. PJW64 实现了 64 位的经典 PJW 哈希算法。

func RS

1
func RS(str []byte) uint32

RS implements the classic RS hash algorithm for 32 bits. RS 实现了 32 位的经典 RS 哈希算法。

func RS64

1
func RS64(str []byte) uint64

RS64 implements the classic RS hash algorithm for 64 bits. RS64 实现了 64 位的经典 RS 哈希算法。

func SDBM

1
func SDBM(str []byte) uint32

SDBM implements the classic SDBM hash algorithm for 32 bits. SDBM 实现了 32 位的经典 SDBM 哈希算法。

func SDBM64

1
func SDBM64(str []byte) uint64

SDBM64 implements the classic SDBM hash algorithm for 64 bits. SDBM64 实现了 64 位的经典 SDBM 哈希算法。

类型

This section is empty.

最后修改 March 29, 2024: 更新 (b5c9128)