xxhash32

package
v1.0.2019 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 16

The blocksize of XXHash32 hash function in bytes

View Source
const Size = 4

The size of a XXHash32 hash value in bytes

Variables

This section is empty.

Functions

func Checksum

func Checksum(input []byte) uint32

Checksum returns the 32bits Hash value.

func ChecksumWithSeed

func ChecksumWithSeed(input []byte, seed uint32) uint32

ChecksumWithSeed returns the 32bits Hash value.

func New

func New() hash.Hash32

New returns a new Hash32 instance.

func NewWithSeed

func NewWithSeed(seed uint32) hash.Hash32

NewWithSeed returns a new Hash32 instance.

func Sum

func Sum(input []byte) (out [Size]byte)

Checksum returns the 32bits Hash value.

func SumWithSeed

func SumWithSeed(input []byte, seed uint32) (out [Size]byte)

Checksum returns the 32bits Hash value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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