Documentation
¶
Index ¶
- func Complex64Hash(p unsafe.Pointer, h uintptr) uintptr
- func Complex128Hash(p unsafe.Pointer, h uintptr) uintptr
- func Float32Hash(p unsafe.Pointer, h uintptr) uintptr
- func Float64Hash(p unsafe.Pointer, h uintptr) uintptr
- func InterfaceHash(p unsafe.Pointer, h uintptr) uintptr
- func MemHash(p unsafe.Pointer, seed, s uintptr) uintptr
- func MemHash32(p unsafe.Pointer, seed uintptr) uintptr
- func MemHash64(p unsafe.Pointer, seed uintptr) uintptr
- func NilInterfaceHash(p unsafe.Pointer, h uintptr) uintptr
- func StringHash(p unsafe.Pointer, h uintptr) uintptr
- func TypeHash(t *abi.Type, p unsafe.Pointer, h uintptr) uintptr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TypeHash ¶
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.
Click to show internal directories.
Click to hide internal directories.