MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / bytesToUint64

Function bytesToUint64

lib/datastore/boltdb.go:256–258  ·  view source on GitHub ↗

uint64ToBytes is a helper function that converts an uint64 to a byte slice

(val []byte)

Source from the content-addressed store, hash-verified

254
255// uint64ToBytes is a helper function that converts an uint64 to a byte slice
256func bytesToUint64(val []byte) uint64 {
257 return binary.BigEndian.Uint64(val)
258}
259
260func check(f func() error) {
261 if err := f(); err != nil {

Callers 15

GetUint64Method · 0.85
minMethod · 0.85
maxMethod · 0.85
FirstIndexMethod · 0.85
LastIndexMethod · 0.85
GetUint64Method · 0.85
TestInMemStore_SetUint64Function · 0.85
TestInMemStore_GetUint64Function · 0.85

Calls

no outgoing calls

Tested by 8

TestInMemStore_SetUint64Function · 0.68
TestInMemStore_GetUint64Function · 0.68
TestFlyDbStore_SetUint64Function · 0.68
TestFlyDbStore_GetUint64Function · 0.68