MCPcopy Create free account
hub / github.com/FloatTech/AnimeAPI / genderGTK

Function genderGTK

qzone/util.go:12–18  ·  view source on GitHub ↗

genderGTK 生成GTK

(sKey string, hash int)

Source from the content-addressed store, hash-verified

10
11// genderGTK 生成GTK
12func genderGTK(sKey string, hash int) string {
13 for _, s := range sKey {
14 us, _ := strconv.Atoi(fmt.Sprintf("%d", s))
15 hash += (hash << 5) + us
16 }
17 return fmt.Sprintf("%d", hash&0x7fffffff)
18}
19
20func structToStr(in interface{}) (payload string) {
21 keys := make([]string, 0, 16)

Callers 2

PtqrshowFunction · 0.85
NewManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…