hash

package
v0.0.0-...-8beb243 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDoubleHash32

func NewDoubleHash32(fn1, fn2 gohash.Hash32, i uint32) gohash.Hash32

func NewDoubleHash64

func NewDoubleHash64(fn1, fn2 gohash.Hash64, i uint64) gohash.Hash64

Types

type DoubleHash32

type DoubleHash32 struct {
	io.Writer
	// contains filtered or unexported fields
}

DoubleHash32 satisfies the hash.Hash32 interface.

It is a double hash function that uses two hash functions to generate a hash value.

Note:

  • `Sum` is a noop.
  • `Size` is a noop
  • `BlockSize` is a noop.

func (*DoubleHash32) BlockSize

func (h *DoubleHash32) BlockSize() int

func (*DoubleHash32) Reset

func (h *DoubleHash32) Reset()

func (*DoubleHash32) Size

func (h *DoubleHash32) Size() int

func (*DoubleHash32) Sum

func (h *DoubleHash32) Sum(b []byte) []byte

func (*DoubleHash32) Sum32

func (h *DoubleHash32) Sum32() uint32

func (*DoubleHash32) Write

func (h *DoubleHash32) Write(p []byte) (n int, err error)

type DoubleHash64

type DoubleHash64 struct {
	io.Writer
	// contains filtered or unexported fields
}

DoubleHash64 satisfies the hash.Hash64 interface.

It is a double hash function that uses two hash functions to generate a hash value.

Note:

  • `Sum` is a noop.
  • `Size` is a noop
  • `BlockSize` is a noop.

func (*DoubleHash64) BlockSize

func (h *DoubleHash64) BlockSize() int

func (*DoubleHash64) Reset

func (h *DoubleHash64) Reset()

func (*DoubleHash64) Size

func (h *DoubleHash64) Size() int

func (*DoubleHash64) Sum

func (h *DoubleHash64) Sum(b []byte) []byte

func (*DoubleHash64) Sum64

func (h *DoubleHash64) Sum64() uint64

func (*DoubleHash64) Write

func (h *DoubleHash64) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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