xxhash

package
v0.0.0-...-d1ab4a3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Backend = "GoUnsafe"

Backend returns the current version of xxhash being used.

Variables

This section is empty.

Functions

func Checksum32

func Checksum32(in []byte) uint32

Checksum32 returns the checksum of the input data with the seed set to 0

func Checksum32S

func Checksum32S(in []byte, seed uint32) (h uint32)

Checksum32S returns the checksum of the input bytes with the specific seed.

func Checksum64

func Checksum64(in []byte) uint64

Checksum64 an alias for Checksum64S(in, 0)

func Checksum64S

func Checksum64S(in []byte, seed uint64) (h uint64)

Checksum64S returns the 64bit xxhash checksum for a single input

func New32

func New32() hash.Hash32

New32 creates a new hash.Hash32 computing the 32bit xxHash checksum starting with the seed set to 0x0.

func New64

func New64() hash.Hash64

New64 creates a new hash.Hash64 computing the 32bit xxHash checksum starting with the seed set to 0x0.

func NewS32

func NewS32(seed uint32) (xx hash.Hash32)

NewS32 creates a new hash.Hash32 computing the 32bit xxHash checksum starting with the specific seed.

func NewS64

func NewS64(seed uint64) (xx hash.Hash64)

NewS64 creates a new hash.Hash32 computing the 64bit xxHash checksum starting with the specific seed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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