MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / sovPb

Function sovPb

bitmap/pb.pb.go:12473–12475  ·  view source on GitHub ↗
(x uint64)

Source from the content-addressed store, hash-verified

12471}
12472
12473func sovPb(x uint64) (n int) {
12474 return (math_bits.Len64(x|1) + 6) / 7
12475}
12476func sozPb(x uint64) (n int) {
12477 return sovPb(uint64((x << 1) ^ uint64((int64(x) >> 63))))
12478}

Callers 15

encodeVarintPbFunction · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected