hash

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XXHash32

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

XXHash32 hash seed

func NewXXHash32

func NewXXHash32(seed uint32) (*XXHash32, error)

NewXXHash32 creates a new insytance of XXHash32

func (*XXHash32) Hash

func (this *XXHash32) Hash(data []byte) uint32

Hash hashes the provided data

func (*XXHash32) SetSeed

func (this *XXHash32) SetSeed(seed uint32)

SetSeed sets the hash seed

type XXHash64

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

XXHash64 hash seed

func NewXXHash64

func NewXXHash64(seed uint64) (*XXHash64, error)

NewXXHash64 creates a new insytance of XXHash64

func (*XXHash64) Hash

func (this *XXHash64) Hash(data []byte) uint64

Hash hashes the provided data

func (*XXHash64) SetSeed

func (this *XXHash64) SetSeed(seed uint64)

SetSeed sets the hash seed

Jump to

Keyboard shortcuts

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