()
| 115 | return base |
| 116 | } |
| 117 | func (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 | |
| 129 | func sovExtGrpc(x uint64) (n int) { |
| 130 | return (math_bits.Len64(x|1) + 6) / 7 |
no test coverage detected