(dAtA []byte)
| 1530 | } |
| 1531 | |
| 1532 | func (m *ErrorInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1533 | i := len(dAtA) |
| 1534 | _ = i |
| 1535 | var l int |
| 1536 | _ = l |
| 1537 | if len(m.Message) > 0 { |
| 1538 | i -= len(m.Message) |
| 1539 | copy(dAtA[i:], m.Message) |
| 1540 | i = encodeVarintGit(dAtA, i, uint64(len(m.Message))) |
| 1541 | i-- |
| 1542 | dAtA[i] = 0x12 |
| 1543 | } |
| 1544 | if m.Type != 0 { |
| 1545 | i = encodeVarintGit(dAtA, i, uint64(m.Type)) |
| 1546 | i-- |
| 1547 | dAtA[i] = 0x8 |
| 1548 | } |
| 1549 | return len(dAtA) - i, nil |
| 1550 | } |
| 1551 | |
| 1552 | func encodeVarintGit(dAtA []byte, offset int, v uint64) int { |
| 1553 | offset -= sovGit(v) |
no test coverage detected