MCPcopy Create free account
hub / github.com/segmentio/encoding / stringToUint64

Function stringToUint64

json/string.go:83–89  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

81}
82
83func stringToUint64(s string) []uint64 {
84 return *(*[]uint64)(unsafe.Pointer(&sliceHeader{
85 Data: *(*unsafe.Pointer)(unsafe.Pointer(&s)),
86 Len: len(s) / 8,
87 Cap: len(s) / 8,
88 }))
89}

Callers 1

escapeIndexFunction · 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…