Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashStringSeed ¶ added in v1.0.0
HashStringSeed returns the hash of the string slice with given seed.
Types ¶
type Hasher ¶ added in v0.13.0
type Hasher struct {
// contains filtered or unexported fields
}
Hasher implements the hash.Hash interface
func New ¶ added in v0.13.0
func New() *Hasher
New returns a new Hasher that implements the hash.Hash interface.
func NewSeed ¶ added in v1.0.0
NewSeed returns a new Hasher that implements the hash.Hash interface.
func (*Hasher) BlockSize ¶ added in v0.13.0
BlockSize returns the hash's underlying block size. The Write method will accept any amount of data, but it may operate more efficiently if all writes are a multiple of the block size.
func (*Hasher) Reset ¶ added in v0.13.0
func (h *Hasher) Reset()
Reset resets the Hash to its initial state.
func (*Hasher) Sum ¶ added in v0.13.0
Sum appends the current hash to b and returns the resulting slice. It does not change the underlying hash state.
type Uint128 ¶ added in v0.11.0
type Uint128 struct {
Hi, Lo uint64
}
Uint128 is a 128 bit value. The actual value can be thought of as u.Hi<<64 | u.Lo.
func Hash128Seed ¶ added in v1.0.0
Hash128Seed returns the 128-bit hash of the byte slice.
func HashString128 ¶ added in v0.9.0
HashString128 returns the 128-bit hash of the string slice.
func HashString128Seed ¶ added in v1.0.0
HashString128Seed returns the 128-bit hash of the string slice.