murmur

package
v0.0.0-...-3fc995f Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: BSD-2-Clause-Views Imports: 4 Imported by: 47

README

murmur

A thin wrapper around https://github.com/spaolacci/murmur3, a Go native and very fast murmur3 implementation.

Documentation

Index

Constants

View Source
const (
	BlockSize = 1
	Size      = 16
)

Variables

This section is empty.

Functions

func HashBytes

func HashBytes(b []byte) []byte

HashBytes will return the hash for the provided byte slice.

func HashInt

func HashInt(i int) []byte

HashInt will return the hash for the provided int.

func HashInt64

func HashInt64(i int64) []byte

HashInt64 will return the hash for the provided int64.

func HashString

func HashString(s string) []byte

HashString will return the hash for the provided string.

Types

type Hash

type Hash bytes.Buffer

func New

func New() *Hash

func NewBytes

func NewBytes(b []byte) *Hash

func NewString

func NewString(s string) *Hash

func (*Hash) Extrude

func (self *Hash) Extrude(result []byte)

func (*Hash) Get

func (self *Hash) Get() []byte

func (*Hash) MustWrite

func (self *Hash) MustWrite(b []byte)

func (*Hash) Write

func (self *Hash) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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