go-appbase: github.com/appbaseio/go-appbase/Godeps/_workspace/src/github.com/spaolacci/murmur3 Index | Files

package murmur3

import "github.com/appbaseio/go-appbase/Godeps/_workspace/src/github.com/spaolacci/murmur3"

Native (and fast) implementation of Austin Appleby's MurmurHash3.

Package murmur3 implements Austin Appleby's non-cryptographic MurmurHash3.

Reference implementation:
   http://code.google.com/p/smhasher/wiki/MurmurHash3

History, characteristics and (legacy) perfs:
   https://sites.google.com/site/murmurhash/
   https://sites.google.com/site/murmurhash/statistics

Index

Package Files

murmur.go murmur128.go murmur32.go murmur64.go

func New32 Uses

func New32() hash.Hash32

func New64 Uses

func New64() hash.Hash64

func Sum128 Uses

func Sum128(data []byte) (h1 uint64, h2 uint64)

Sum128 returns the MurmurHash3 sum of data. It is equivalent to the following sequence (without the extra burden and the extra allocation):

hasher := New128()
hasher.Write(data)
return hasher.Sum128()

func Sum32 Uses

func Sum32(data []byte) uint32

Sum32 returns the MurmurHash3 sum of data. It is equivalent to the following sequence (without the extra burden and the extra allocation):

hasher := New32()
hasher.Write(data)
return hasher.Sum32()

func Sum64 Uses

func Sum64(data []byte) uint64

Sum64 returns the MurmurHash3 sum of data. It is equivalent to the following sequence (without the extra burden and the extra allocation):

hasher := New64()
hasher.Write(data)
return hasher.Sum64()

type Hash128 Uses

type Hash128 interface {
    hash.Hash
    Sum128() (uint64, uint64)
}

Hack: the standard api doesn't define any Hash128 interface.

func New128 Uses

func New128() Hash128

Package murmur3 imports 2 packages (graph) and is imported by 1 packages. Updated 2016-07-15. Refresh now. Tools for package owners.