interfaces

package
v0.0.0-...-9e35eaa Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashFunction

type HashFunction interface {
	NewHasher() Hasher

	HashString(input string) hashcode.HashCode
	HashBytes(input []byte) hashcode.HashCode
}

type Hasher

type Hasher interface {
	PutByte(b byte) Hasher
	PutBool(b bool) Hasher
	PutBytes(bytes []byte) Hasher
	PutUint32(i uint32) Hasher
	PutUint64(i uint64) Hasher
	PutFloat32(f float32) Hasher
	PutFloat64(f float64) Hasher
	PutString(s string) Hasher
	Hash() hashcode.HashCode
}

Hasher

Jump to

Keyboard shortcuts

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