(dAtA []byte)
| 933 | return nil |
| 934 | } |
| 935 | func (m *InstanceDesc) Unmarshal(dAtA []byte) error { |
| 936 | l := len(dAtA) |
| 937 | iNdEx := 0 |
| 938 | for iNdEx < l { |
| 939 | preIndex := iNdEx |
| 940 | var wire uint64 |
| 941 | for shift := uint(0); ; shift += 7 { |
| 942 | if shift >= 64 { |
| 943 | return ErrIntOverflowRing |
| 944 | } |
| 945 | if iNdEx >= l { |
| 946 | return io.ErrUnexpectedEOF |
| 947 | } |
| 948 | b := dAtA[iNdEx] |
| 949 | iNdEx++ |
| 950 | wire |= uint64(b&0x7F) << shift |
| 951 | if b < 0x80 { |
| 952 | break |
| 953 | } |
| 954 | } |
| 955 | fieldNum := int32(wire >> 3) |
| 956 | wireType := int(wire & 0x7) |
| 957 | if wireType == 4 { |
| 958 | return fmt.Errorf("proto: InstanceDesc: wiretype end group for non-group") |
| 959 | } |
| 960 | if fieldNum <= 0 { |
| 961 | return fmt.Errorf("proto: InstanceDesc: illegal tag %d (wire type %d)", fieldNum, wire) |
| 962 | } |
| 963 | switch fieldNum { |
| 964 | case 1: |
| 965 | if wireType != 2 { |
| 966 | return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) |
| 967 | } |
| 968 | var stringLen uint64 |
| 969 | for shift := uint(0); ; shift += 7 { |
| 970 | if shift >= 64 { |
| 971 | return ErrIntOverflowRing |
| 972 | } |
| 973 | if iNdEx >= l { |
| 974 | return io.ErrUnexpectedEOF |
| 975 | } |
| 976 | b := dAtA[iNdEx] |
| 977 | iNdEx++ |
| 978 | stringLen |= uint64(b&0x7F) << shift |
| 979 | if b < 0x80 { |
| 980 | break |
| 981 | } |
| 982 | } |
| 983 | intStringLen := int(stringLen) |
| 984 | if intStringLen < 0 { |
| 985 | return ErrInvalidLengthRing |
| 986 | } |
| 987 | postIndex := iNdEx + intStringLen |
| 988 | if postIndex < 0 { |
| 989 | return ErrInvalidLengthRing |
| 990 | } |
| 991 | if postIndex > l { |
| 992 | return io.ErrUnexpectedEOF |
no test coverage detected