1
2
3
4
5
6
7 package maps
8
9 import (
10 "unsafe"
11 )
12
13
14 const memHashAESImplemented = false
15 const memHashUsesVAES = false
16
17 func memHash32AES(k uint32, h uintptr) uintptr {
18 panic("memHash32AES not implemented")
19 }
20
21 func memHash64AES(k uint64, h uintptr) uintptr {
22 panic("memHash64AES not implemented")
23 }
24
25 func memHashAES(p unsafe.Pointer, h, s uintptr) uintptr {
26 panic("memHashAES not implemented")
27 }
28
29 func MemHash(p unsafe.Pointer, h, s uintptr) uintptr {
30 return memHashFallback(p, h, s)
31 }
32
33 func MemHash32(k uint32, h uintptr) uintptr {
34 return memHash32Fallback(k, h)
35 }
36
37 func MemHash64(k uint64, h uintptr) uintptr {
38 return memHash64Fallback(k, h)
39 }
40
41 func StrHash(s string, h uintptr) uintptr {
42 return memHashFallback(unsafe.Pointer(unsafe.StringData(s)), h, uintptr(len(s)))
43 }
44
View as plain text