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

Function sovEchoServer

middleware/middleware_test/echo_server.pb.go:306–308  ·  view source on GitHub ↗
(x uint64)

Source from the content-addressed store, hash-verified

304}
305
306func sovEchoServer(x uint64) (n int) {
307 return (math_bits.Len64(x|1) + 6) / 7
308}
309func sozEchoServer(x uint64) (n int) {
310 return sovEchoServer(uint64((x << 1) ^ uint64((int64(x) >> 63))))
311}

Callers 3

encodeVarintEchoServerFunction · 0.85
SizeMethod · 0.85
sozEchoServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected