xxhash

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package xxhash provides a wrapper around the xxhash library for attribute hashing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

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

Hash wraps xxhash.Digest to provide an API friendly for hashing attribute values.

func New

func New() Hash

New returns a new initialized xxHash64 hasher.

func (Hash) Bool

func (h Hash) Bool(val bool) Hash

func (Hash) Float64

func (h Hash) Float64(val float64) Hash

Float64 hashes val into h, returning the updated Hash.

func (Hash) Int64

func (h Hash) Int64(val int64) Hash

Int64 hashes val into h, returning the updated Hash.

func (Hash) Reset added in v1.46.0

func (h Hash) Reset()

Reset resets the hash to its initial state.

func (Hash) String

func (h Hash) String(val string) Hash

func (Hash) Sum64

func (h Hash) Sum64() uint64

Sum64 returns the current hash value.

func (Hash) Uint64

func (h Hash) Uint64(val uint64) Hash

Uint64 hashes val into h, returning the updated Hash.

Jump to

Keyboard shortcuts

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