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

Function expand

json/string.go:79–81  ·  view source on GitHub ↗

expand puts the specified byte into each of the 8 bytes of a uint64.

(b byte)

Source from the content-addressed store, hash-verified

77
78// expand puts the specified byte into each of the 8 bytes of a uint64.
79func expand(b byte) uint64 {
80 return lsb * uint64(b)
81}
82
83func stringToUint64(s string) []uint64 {
84 return *(*[]uint64)(unsafe.Pointer(&sliceHeader{

Callers 2

belowFunction · 0.85
containsFunction · 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…