farm

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2016 License: MIT, MIT Imports: 0 Imported by: 0

README

go-farm: Google's FarmHash in pure Go

This is a (mechanical) translation of the non-SSE4/non-AESNI hash functions from FarmHash.

For more information on FarmHash, please see https://code.google.com/p/farmhash

For a cgo library wrapping the C++ one, please see https://github.com/dgryski/go-farmhash

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fingerprint128

func Fingerprint128(s []byte) (lo, hi uint64)

func Fingerprint32

func Fingerprint32(s []byte) uint32

func Fingerprint64

func Fingerprint64(s []byte) uint64

func Hash128

func Hash128(s []byte) (lo, hi uint64)

func Hash128WithSeed

func Hash128WithSeed(s []byte, seed0, seed1 uint64) (lo, hi uint64)

func Hash32

func Hash32(s []byte) uint32

func Hash32WithSeed

func Hash32WithSeed(s []byte, seed uint32) uint32

func Hash64

func Hash64(s []byte) uint64

func Hash64WithSeed

func Hash64WithSeed(s []byte, seed uint64) uint64

func Hash64WithSeeds

func Hash64WithSeeds(s []byte, seed0, seed1 uint64) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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