| 12682 | return nil |
| 12683 | } |
| 12684 | func (m *SrcFunction) Unmarshal(dAtA []byte) error { |
| 12685 | l := len(dAtA) |
| 12686 | iNdEx := 0 |
| 12687 | for iNdEx < l { |
| 12688 | preIndex := iNdEx |
| 12689 | var wire uint64 |
| 12690 | for shift := uint(0); ; shift += 7 { |
| 12691 | if shift >= 64 { |
| 12692 | return ErrIntOverflowPb |
| 12693 | } |
| 12694 | if iNdEx >= l { |
| 12695 | return io.ErrUnexpectedEOF |
| 12696 | } |
| 12697 | b := dAtA[iNdEx] |
| 12698 | iNdEx++ |
| 12699 | wire |= uint64(b&0x7F) << shift |
| 12700 | if b < 0x80 { |
| 12701 | break |
| 12702 | } |
| 12703 | } |
| 12704 | fieldNum := int32(wire >> 3) |
| 12705 | wireType := int(wire & 0x7) |
| 12706 | if wireType == 4 { |
| 12707 | return fmt.Errorf("proto: SrcFunction: wiretype end group for non-group") |
| 12708 | } |
| 12709 | if fieldNum <= 0 { |
| 12710 | return fmt.Errorf("proto: SrcFunction: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12711 | } |
| 12712 | switch fieldNum { |
| 12713 | case 1: |
| 12714 | if wireType != 2 { |
| 12715 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 12716 | } |
| 12717 | var stringLen uint64 |
| 12718 | for shift := uint(0); ; shift += 7 { |
| 12719 | if shift >= 64 { |
| 12720 | return ErrIntOverflowPb |
| 12721 | } |
| 12722 | if iNdEx >= l { |
| 12723 | return io.ErrUnexpectedEOF |
| 12724 | } |
| 12725 | b := dAtA[iNdEx] |
| 12726 | iNdEx++ |
| 12727 | stringLen |= uint64(b&0x7F) << shift |
| 12728 | if b < 0x80 { |
| 12729 | break |
| 12730 | } |
| 12731 | } |
| 12732 | intStringLen := int(stringLen) |
| 12733 | if intStringLen < 0 { |
| 12734 | return ErrInvalidLengthPb |
| 12735 | } |
| 12736 | postIndex := iNdEx + intStringLen |
| 12737 | if postIndex < 0 { |
| 12738 | return ErrInvalidLengthPb |
| 12739 | } |
| 12740 | if postIndex > l { |
| 12741 | return io.ErrUnexpectedEOF |