MCPcopy
hub / github.com/etcd-io/etcd / bytesToLeaseID

Function bytesToLeaseID

tools/etcd-dump-db/backend.go:80–85  ·  view source on GitHub ↗
(bytes []byte)

Source from the content-addressed store, hash-verified

78}
79
80func bytesToLeaseID(bytes []byte) int64 {
81 if len(bytes) != 8 {
82 panic(fmt.Errorf("lease ID must be 8-byte"))
83 }
84 return int64(binary.BigEndian.Uint64(bytes))
85}
86
87func leaseDecoder(k, v []byte) {
88 leaseID := bytesToLeaseID(k)

Callers 1

leaseDecoderFunction · 0.70

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…