fnv1a

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2018 License: MIT Imports: 0 Imported by: 161

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 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 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