murmur3

package module
v0.0.0-...-c061736 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: BSD-2-Clause Imports: 1 Imported by: 0

README

Build Status

GoDoc

This is the source repository for murmur3

murmur3

murmur3 library is a native implementation of progressive processing version of the Murmur3 family of hash functions in Go.

Documentation

Overview

Package murmur3 provides a progressive processing version of Austin Appleby's Murmur3 Hash functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash128

type Hash128 interface {
	HashM3
	Sum128() (uint64, uint64)
}

Hash128 interface for 128-bit hash functions.

func New32

func New32(seed uint32) Hash128

New32 returns a Murmur3 128-bit hash.Hash optimized for 32-bit architecture.

func New64

func New64(seed uint32) Hash128

New64 returns a Murmur3 128-bit hash.Hash optimized for 64-bit architecture.

type Hash32

type Hash32 interface {
	HashM3
	Sum32() uint32
}

Hash32 interface for 32-bit hash functions.

func New32a

func New32a(seed uint32) Hash32

New32a returns a Murmur3 32-bit hash.Hash opmtimized for 32-bit architecture.

type HashM3

type HashM3 interface {
	hash.Hash
	//ResetAndSetSeed resets the hash and sets the seed.
	ResetAndSetSeed(seed uint32)
	Clone() HashM3
}

HashM3 extends hash.Hash and provides an additional function ResetAndSetSeed to reset the structures and set the seed.

Jump to

Keyboard shortcuts

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