()
| 1720 | } |
| 1721 | |
| 1722 | func (m *ErrorInfo) Size() (n int) { |
| 1723 | if m == nil { |
| 1724 | return 0 |
| 1725 | } |
| 1726 | var l int |
| 1727 | _ = l |
| 1728 | if m.Type != 0 { |
| 1729 | n += 1 + sovGit(uint64(m.Type)) |
| 1730 | } |
| 1731 | l = len(m.Message) |
| 1732 | if l > 0 { |
| 1733 | n += 1 + l + sovGit(uint64(l)) |
| 1734 | } |
| 1735 | return n |
| 1736 | } |
| 1737 | |
| 1738 | func sovGit(x uint64) (n int) { |
| 1739 | return (math_bits.Len64(x|1) + 6) / 7 |