fnv1a

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 0 Imported by: 145

Documentation

Index

Constants

View Source
const (

	// Init32 is what 32 bits hash values should be initialized with.
	Init32 = offset32
)
View Source
const (

	// Init64 is what 64 bits hash values should be initialized with.
	Init64 = offset64
)

Variables

This section is empty.

Functions

func AddBytes32 added in v1.0.2

func AddBytes32(h uint32, b []byte) uint32

AddBytes32 adds the hash of b to the precomputed hash value h.

func AddBytes64 added in v1.0.2

func AddBytes64(h uint64, b []byte) uint64

AddBytes64 adds the hash of b to the precomputed hash value h.

func AddString32

func AddString32(h uint32, s string) uint32

AddString32 adds the hash of s to the precomputed hash value h.

func AddString64

func AddString64(h uint64, s string) uint64

AddString64 adds the hash of s to the precomputed hash value h.

func AddUint32

func AddUint32(h, u uint32) uint32

AddUint32 adds the hash value of the 8 bytes of u to h.

func AddUint64

func AddUint64(h uint64, u uint64) uint64

AddUint64 adds the hash value of the 8 bytes of u to h.

func HashBytes32 added in v1.0.2

func HashBytes32(b []byte) uint32

HashBytes32 returns the hash of u.

func HashBytes64 added in v1.0.2

func HashBytes64(b []byte) uint64

HashBytes64 returns the hash of u.

func HashString32

func HashString32(s string) uint32

HashString32 returns the hash of s.

func HashString64

func HashString64(s string) uint64

HashString64 returns the hash of s.

func HashUint32

func HashUint32(u uint32) uint32

HashUint32 returns the hash of u.

func HashUint64

func HashUint64(u uint64) uint64

HashUint64 returns the hash of u.

Types

This section is empty.

Jump to

Keyboard shortcuts

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