xxh32

package
v2.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package xxh32 implements the very fast XXH hashing algorithm (32 bits version). (https://github.com/Cyan4973/XXH/)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChecksumZero

func ChecksumZero(input []byte) uint32

ChecksumZero returns the 32bits Hash value.

func Uint32Zero

func Uint32Zero(x uint32) uint32

Uint32Zero hashes x with seed 0.

Types

type XXHZero

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

XXHZero represents an xxhash32 object with seed 0.

func (*XXHZero) BlockSize

func (xxh *XXHZero) BlockSize() int

BlockSize gives the minimum number of bytes accepted by Write().

func (*XXHZero) Reset

func (xxh *XXHZero) Reset()

Reset resets the Hash to its initial state.

func (*XXHZero) Size

func (xxh *XXHZero) Size() int

Size returns the number of bytes returned by Sum().

func (XXHZero) Sum

func (xxh XXHZero) Sum(b []byte) []byte

Sum appends the current hash to b and returns the resulting slice. It does not change the underlying hash state.

func (*XXHZero) Sum32

func (xxh *XXHZero) Sum32() uint32

Sum32 returns the 32 bits Hash value.

func (*XXHZero) Write

func (xxh *XXHZero) Write(input []byte) (int, error)

Write adds input bytes to the Hash. It never returns an error.

Jump to

Keyboard shortcuts

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