MCPcopy
hub / github.com/grafana/dskit / sovRing

Function sovRing

ring/ring.pb.go:690–692  ·  view source on GitHub ↗
(x uint64)

Source from the content-addressed store, hash-verified

688}
689
690func sovRing(x uint64) (n int) {
691 return (math_bits.Len64(x|1) + 6) / 7
692}
693func sozRing(x uint64) (n int) {
694 return sovRing(uint64((x << 1) ^ uint64((int64(x) >> 63))))
695}

Callers 4

encodeVarintRingFunction · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
sozRingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected