(dAtA []byte)
| 9061 | return nil |
| 9062 | } |
| 9063 | func (m *SpanSet) Unmarshal(dAtA []byte) error { |
| 9064 | l := len(dAtA) |
| 9065 | iNdEx := 0 |
| 9066 | for iNdEx < l { |
| 9067 | preIndex := iNdEx |
| 9068 | var wire uint64 |
| 9069 | for shift := uint(0); ; shift += 7 { |
| 9070 | if shift >= 64 { |
| 9071 | return ErrIntOverflowTempo |
| 9072 | } |
| 9073 | if iNdEx >= l { |
| 9074 | return io.ErrUnexpectedEOF |
| 9075 | } |
| 9076 | b := dAtA[iNdEx] |
| 9077 | iNdEx++ |
| 9078 | wire |= uint64(b&0x7F) << shift |
| 9079 | if b < 0x80 { |
| 9080 | break |
| 9081 | } |
| 9082 | } |
| 9083 | fieldNum := int32(wire >> 3) |
| 9084 | wireType := int(wire & 0x7) |
| 9085 | if wireType == 4 { |
| 9086 | return fmt.Errorf("proto: SpanSet: wiretype end group for non-group") |
| 9087 | } |
| 9088 | if fieldNum <= 0 { |
| 9089 | return fmt.Errorf("proto: SpanSet: illegal tag %d (wire type %d)", fieldNum, wire) |
| 9090 | } |
| 9091 | switch fieldNum { |
| 9092 | case 1: |
| 9093 | if wireType != 2 { |
| 9094 | return fmt.Errorf("proto: wrong wireType = %d for field Spans", wireType) |
| 9095 | } |
| 9096 | var msglen int |
| 9097 | for shift := uint(0); ; shift += 7 { |
| 9098 | if shift >= 64 { |
| 9099 | return ErrIntOverflowTempo |
| 9100 | } |
| 9101 | if iNdEx >= l { |
| 9102 | return io.ErrUnexpectedEOF |
| 9103 | } |
| 9104 | b := dAtA[iNdEx] |
| 9105 | iNdEx++ |
| 9106 | msglen |= int(b&0x7F) << shift |
| 9107 | if b < 0x80 { |
| 9108 | break |
| 9109 | } |
| 9110 | } |
| 9111 | if msglen < 0 { |
| 9112 | return ErrInvalidLengthTempo |
| 9113 | } |
| 9114 | postIndex := iNdEx + msglen |
| 9115 | if postIndex < 0 { |
| 9116 | return ErrInvalidLengthTempo |
| 9117 | } |
| 9118 | if postIndex > l { |
| 9119 | return io.ErrUnexpectedEOF |
| 9120 | } |
no test coverage detected