Source File
multihash_murmur3.go
Belonging Package
github.com/multiformats/go-multihash/register/murmur3
/*This package has no purpose except to perform registration of multihashes.It is meant to be used as a side-effecting import, e.g.import (_ "github.com/multiformats/go-multihash/register/murmur3")This package registers multihashes for murmur3*/package murmur3import (multihash)func init() {multihash.Register(multihash.MURMUR3X64_64, func() hash.Hash { return murmur64{murmur3.New64()} })}// A wrapper is needed to export the correct size, because murmur3 incorrectly advertises Hash64 as a 128bit hash.type murmur64 struct {hash.Hash64}func (murmur64) () int {return 1}func ( murmur64) () int {return 8}func ( murmur64) ( []byte) []byte {return .Hash64.Sum()}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |