mm32

package
v0.0.0-...-9e35eaa Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Zhf seed为0的HashFunction

Functions

func NewHashFunction

func NewHashFunction(seed uint32) interfaces.HashFunction

Types

type HashFunction

type HashFunction struct {
	// contains filtered or unexported fields
}

func (*HashFunction) HashBytes

func (m *HashFunction) HashBytes(input []byte) hashcode.HashCode

func (*HashFunction) HashString

func (m *HashFunction) HashString(input string) hashcode.HashCode

func (*HashFunction) NewHasher

func (m *HashFunction) NewHasher() interfaces.Hasher

type Hasher

type Hasher struct {
	// contains filtered or unexported fields
}

func NewHasher

func NewHasher(seed uint32) *Hasher

func (*Hasher) Hash

func (h *Hasher) Hash() hashcode.HashCode

func (*Hasher) PutBool

func (h *Hasher) PutBool(b bool) interfaces.Hasher

func (*Hasher) PutByte

func (h *Hasher) PutByte(b byte) interfaces.Hasher

func (*Hasher) PutBytes

func (h *Hasher) PutBytes(bs []byte) interfaces.Hasher

func (*Hasher) PutFloat32

func (h *Hasher) PutFloat32(f float32) interfaces.Hasher

func (*Hasher) PutFloat64

func (h *Hasher) PutFloat64(f float64) interfaces.Hasher

func (*Hasher) PutString

func (h *Hasher) PutString(s string) interfaces.Hasher

func (*Hasher) PutUint32

func (h *Hasher) PutUint32(i uint32) interfaces.Hasher

func (*Hasher) PutUint64

func (h *Hasher) PutUint64(i uint64) interfaces.Hasher

Jump to

Keyboard shortcuts

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