mm128

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

func NewHasher

func NewHasher(seed uint32) interfaces.Hasher

Types

type HashFunction

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

func (*HashFunction) HashBytes

func (hf *HashFunction) HashBytes(data []byte) hashcode.HashCode

func (*HashFunction) HashString

func (hf *HashFunction) HashString(data string) hashcode.HashCode

func (*HashFunction) NewHasher

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

type Hasher

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

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(bytes []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

func (*Hasher) Size

func (h *Hasher) Size() int

Jump to

Keyboard shortcuts

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