MCPcopy
hub / github.com/etcd-io/bbolt / u64tob

Function u64tob

db_test.go:2240–2244  ·  view source on GitHub ↗

u64tob converts a uint64 into an 8-byte slice.

(v uint64)

Source from the content-addressed store, hash-verified

2238
2239// u64tob converts a uint64 into an 8-byte slice.
2240func u64tob(v uint64) []byte {
2241 b := make([]byte, 8)
2242 binary.BigEndian.PutUint64(b, v)
2243 return b
2244}

Callers 6

TestOpen_Size_LargeFunction · 0.85
TestDB_BatchFunction · 0.85
TestDB_BatchFullFunction · 0.85
TestDB_BatchTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected