hasher

package
v0.0.0-...-96a7f1f Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteHash

func CompleteHash(keyPreHash uint64, keyTypeID uint8) uint64

func Hash

func Hash(key interface{}) uint64

func IsEqualKey

func IsEqualKey(keyA, keyB I.Key) bool

func PreHash

func PreHash(keyI I.Key) (value uint64, typeId uint8, isFull bool)

func PreHashBytes

func PreHashBytes(in []byte) (uint64, uint8, bool)

func PreHashString

func PreHashString(in string) (uint64, uint8, bool)

func PreHashUint64

func PreHashUint64(in uint64) (uint64, uint8, bool)

func PreHashUintptr

func PreHashUintptr(in uintptr) (uint64, uint8, bool)

func Uint64Hash

func Uint64Hash(key uint64) uint64

Types

type Hasher

type Hasher struct{}

func New

func New() *Hasher

func (*Hasher) CompleteHash

func (h *Hasher) CompleteHash(keyPreHash uint64, keyTypeID uint8) uint64

func (*Hasher) Hash

func (h *Hasher) Hash(key interface{}) uint64

func (*Hasher) PreHash

func (h *Hasher) PreHash(key interface{}) (uint64, uint8, bool)

func (*Hasher) PreHashBytes

func (h *Hasher) PreHashBytes(key []byte) (uint64, uint8, bool)

func (*Hasher) PreHashUint64

func (h *Hasher) PreHashUint64(key uint64) (uint64, uint8, bool)

Jump to

Keyboard shortcuts

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