MCPcopy
hub / github.com/tinylib/msgp / getUnix

Function getUnix

msgp/integers.go:143–148  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

141}
142
143func getUnix(b []byte) (sec int64, nsec int32) {
144 sec = int64(binary.BigEndian.Uint64(b))
145 nsec = int32(binary.BigEndian.Uint32(b[8:]))
146
147 return
148}
149
150func putUnix(b []byte, sec int64, nsec int32) {
151 binary.BigEndian.PutUint64(b, uint64(sec))

Callers 3

ReadTimeMethod · 0.85
BenchmarkIntegersUnixFunction · 0.85
ReadTimeBytesFunction · 0.85

Calls

no outgoing calls

Tested by 1

BenchmarkIntegersUnixFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…