spooky

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

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

Go to latest
Published: Jun 6, 2017 License: MIT Imports: 1 Imported by: 5

Documentation

Overview

Package spooky implements Bob Jenkins' Spooky hash http://www.burtleburtle.net/bob/hash/spooky.html Public domain, like the original

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash128

func Hash128(message []byte, hash1, hash2 *uint64)

func Hash32

func Hash32(message []byte) uint32

func Hash32Seed

func Hash32Seed(message []byte, hash1 uint32) uint32

func Hash64

func Hash64(message []byte) uint64

func Hash64Seed

func Hash64Seed(message []byte, hash1 uint64) uint64

func Short

func Short(message []byte, hash1, hash2 *uint64)

Types

type Spooky

type Spooky struct {
	// contains filtered or unexported fields
}

func New

func New(seed1, seed2 uint64) *Spooky

func (*Spooky) BlockSize

func (s *Spooky) BlockSize() int

func (*Spooky) Reset

func (s *Spooky) Reset()

func (*Spooky) Size

func (s *Spooky) Size() int

func (*Spooky) Sum

func (s *Spooky) Sum(b []byte) []byte

func (*Spooky) Sum32

func (s *Spooky) Sum32() uint32

func (*Spooky) Sum64

func (s *Spooky) Sum64() uint64

func (*Spooky) Write

func (s *Spooky) Write(message []byte) (int, error)

Jump to

Keyboard shortcuts

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