(dAtA []byte)
| 1518 | return nil |
| 1519 | } |
| 1520 | func (m *EncodedWrapper) Unmarshal(dAtA []byte) error { |
| 1521 | l := len(dAtA) |
| 1522 | iNdEx := 0 |
| 1523 | for iNdEx < l { |
| 1524 | preIndex := iNdEx |
| 1525 | var wire uint64 |
| 1526 | for shift := uint(0); ; shift += 7 { |
| 1527 | if shift >= 64 { |
| 1528 | return ErrIntOverflowErrors |
| 1529 | } |
| 1530 | if iNdEx >= l { |
| 1531 | return io.ErrUnexpectedEOF |
| 1532 | } |
| 1533 | b := dAtA[iNdEx] |
| 1534 | iNdEx++ |
| 1535 | wire |= uint64(b&0x7F) << shift |
| 1536 | if b < 0x80 { |
| 1537 | break |
| 1538 | } |
| 1539 | } |
| 1540 | fieldNum := int32(wire >> 3) |
| 1541 | wireType := int(wire & 0x7) |
| 1542 | if wireType == 4 { |
| 1543 | return fmt.Errorf("proto: EncodedWrapper: wiretype end group for non-group") |
| 1544 | } |
| 1545 | if fieldNum <= 0 { |
| 1546 | return fmt.Errorf("proto: EncodedWrapper: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1547 | } |
| 1548 | switch fieldNum { |
| 1549 | case 1: |
| 1550 | if wireType != 2 { |
| 1551 | return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) |
| 1552 | } |
| 1553 | var msglen int |
| 1554 | for shift := uint(0); ; shift += 7 { |
| 1555 | if shift >= 64 { |
| 1556 | return ErrIntOverflowErrors |
| 1557 | } |
| 1558 | if iNdEx >= l { |
| 1559 | return io.ErrUnexpectedEOF |
| 1560 | } |
| 1561 | b := dAtA[iNdEx] |
| 1562 | iNdEx++ |
| 1563 | msglen |= int(b&0x7F) << shift |
| 1564 | if b < 0x80 { |
| 1565 | break |
| 1566 | } |
| 1567 | } |
| 1568 | if msglen < 0 { |
| 1569 | return ErrInvalidLengthErrors |
| 1570 | } |
| 1571 | postIndex := iNdEx + msglen |
| 1572 | if postIndex < 0 { |
| 1573 | return ErrInvalidLengthErrors |
| 1574 | } |
| 1575 | if postIndex > l { |
| 1576 | return io.ErrUnexpectedEOF |
| 1577 | } |
no test coverage detected