MCPcopy Index your code
hub / github.com/cockroachdb/errors / Size

Method Size

extgrpc/ext_grpc.pb.go:117–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 return base
116}
117func (m *EncodedGrpcCode) Size() (n int) {
118 if m == nil {
119 return 0
120 }
121 var l int
122 _ = l
123 if m.Code != 0 {
124 n += 1 + sovExtGrpc(uint64(m.Code))
125 }
126 return n
127}
128
129func sovExtGrpc(x uint64) (n int) {
130 return (math_bits.Len64(x|1) + 6) / 7

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

sovExtGrpcFunction · 0.85

Tested by

no test coverage detected