| 3975 | return nil |
| 3976 | } |
| 3977 | func (m *Extent) Unmarshal(dAtA []byte) error { |
| 3978 | l := len(dAtA) |
| 3979 | iNdEx := 0 |
| 3980 | for iNdEx < l { |
| 3981 | preIndex := iNdEx |
| 3982 | var wire uint64 |
| 3983 | for shift := uint(0); ; shift += 7 { |
| 3984 | if shift >= 64 { |
| 3985 | return ErrIntOverflowQuery |
| 3986 | } |
| 3987 | if iNdEx >= l { |
| 3988 | return io.ErrUnexpectedEOF |
| 3989 | } |
| 3990 | b := dAtA[iNdEx] |
| 3991 | iNdEx++ |
| 3992 | wire |= uint64(b&0x7F) << shift |
| 3993 | if b < 0x80 { |
| 3994 | break |
| 3995 | } |
| 3996 | } |
| 3997 | fieldNum := int32(wire >> 3) |
| 3998 | wireType := int(wire & 0x7) |
| 3999 | if wireType == 4 { |
| 4000 | return fmt.Errorf("proto: Extent: wiretype end group for non-group") |
| 4001 | } |
| 4002 | if fieldNum <= 0 { |
| 4003 | return fmt.Errorf("proto: Extent: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4004 | } |
| 4005 | switch fieldNum { |
| 4006 | case 1: |
| 4007 | if wireType != 0 { |
| 4008 | return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) |
| 4009 | } |
| 4010 | m.Start = 0 |
| 4011 | for shift := uint(0); ; shift += 7 { |
| 4012 | if shift >= 64 { |
| 4013 | return ErrIntOverflowQuery |
| 4014 | } |
| 4015 | if iNdEx >= l { |
| 4016 | return io.ErrUnexpectedEOF |
| 4017 | } |
| 4018 | b := dAtA[iNdEx] |
| 4019 | iNdEx++ |
| 4020 | m.Start |= int64(b&0x7F) << shift |
| 4021 | if b < 0x80 { |
| 4022 | break |
| 4023 | } |
| 4024 | } |
| 4025 | case 2: |
| 4026 | if wireType != 0 { |
| 4027 | return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) |
| 4028 | } |
| 4029 | m.End = 0 |
| 4030 | for shift := uint(0); ; shift += 7 { |
| 4031 | if shift >= 64 { |
| 4032 | return ErrIntOverflowQuery |
| 4033 | } |
| 4034 | if iNdEx >= l { |