hashhelper

package
v1.121.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool[T ~bool](h hash.Hash, data T)

Bool writes the given boolean to the hash.

func Float32 added in v1.120.0

func Float32[T ~float32](h hash.Hash, data T)

Float32 writes the given 64-bit float to the hash.

func Float64 added in v1.120.0

func Float64[T ~float64](h hash.Hash, data T)

Float64 writes the given 64-bit float to the hash.

func Num16

func Num16[T ~int16 | ~uint16](h hash.Hash, data T)

Num16 writes the given 16-bit number to the hash.

func Num32

func Num32[T ~int32 | ~uint32](h hash.Hash, data T)

Num32 writes the given 32-bit number to the hash.

func Num64

func Num64[T ~int64 | ~uint64 | ~int | ~uint](h hash.Hash, data T)

Num64 writes the given 64-bit number to the hash.

func Num8

func Num8[T ~int8 | ~uint8](h hash.Hash, data T)

Num8 writes the given 8-bit number to the hash.

func String

func String[T ~string](h hash.Hash, data T)

String writes the given string to the hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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