hash

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Complex64Hash

func Complex64Hash(p unsafe.Pointer, h uintptr) uintptr

func Complex128Hash

func Complex128Hash(p unsafe.Pointer, h uintptr) uintptr

func Float32Hash

func Float32Hash(p unsafe.Pointer, h uintptr) uintptr

func Float64Hash

func Float64Hash(p unsafe.Pointer, h uintptr) uintptr

func InterfaceHash

func InterfaceHash(p unsafe.Pointer, h uintptr) uintptr

func MemHash

func MemHash(p unsafe.Pointer, seed, s uintptr) uintptr

func MemHash32

func MemHash32(p unsafe.Pointer, seed uintptr) uintptr

func MemHash64

func MemHash64(p unsafe.Pointer, seed uintptr) uintptr

func NilInterfaceHash

func NilInterfaceHash(p unsafe.Pointer, h uintptr) uintptr

func StringHash

func StringHash(p unsafe.Pointer, h uintptr) uintptr

func TypeHash

func TypeHash(t *abi.Type, p unsafe.Pointer, h uintptr) uintptr

TypeHash computes the hash of the object of type t at address p. h is the seed. This function is seldom used. Most maps use for hashing either fixed functions (e.g. f32hash) or compiler-generated functions (e.g. for a type like struct { x, y string }). This implementation is slower but more general and is used for hashing interface types (called from interhash or nilinterhash, above) or for hashing in maps generated by reflect.MapOf (reflect_typehash, below). Note: this function must match the compiler generated functions exactly. See issue 37716.

Types

This section is empty.

Jump to

Keyboard shortcuts

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