(dAtA []byte)
| 1066 | return sovErrors(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 1067 | } |
| 1068 | func (m *EncodedError) Unmarshal(dAtA []byte) error { |
| 1069 | l := len(dAtA) |
| 1070 | iNdEx := 0 |
| 1071 | for iNdEx < l { |
| 1072 | preIndex := iNdEx |
| 1073 | var wire uint64 |
| 1074 | for shift := uint(0); ; shift += 7 { |
| 1075 | if shift >= 64 { |
| 1076 | return ErrIntOverflowErrors |
| 1077 | } |
| 1078 | if iNdEx >= l { |
| 1079 | return io.ErrUnexpectedEOF |
| 1080 | } |
| 1081 | b := dAtA[iNdEx] |
| 1082 | iNdEx++ |
| 1083 | wire |= uint64(b&0x7F) << shift |
| 1084 | if b < 0x80 { |
| 1085 | break |
| 1086 | } |
| 1087 | } |
| 1088 | fieldNum := int32(wire >> 3) |
| 1089 | wireType := int(wire & 0x7) |
| 1090 | if wireType == 4 { |
| 1091 | return fmt.Errorf("proto: EncodedError: wiretype end group for non-group") |
| 1092 | } |
| 1093 | if fieldNum <= 0 { |
| 1094 | return fmt.Errorf("proto: EncodedError: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1095 | } |
| 1096 | switch fieldNum { |
| 1097 | case 1: |
| 1098 | if wireType != 2 { |
| 1099 | return fmt.Errorf("proto: wrong wireType = %d for field Leaf", wireType) |
| 1100 | } |
| 1101 | var msglen int |
| 1102 | for shift := uint(0); ; shift += 7 { |
| 1103 | if shift >= 64 { |
| 1104 | return ErrIntOverflowErrors |
| 1105 | } |
| 1106 | if iNdEx >= l { |
| 1107 | return io.ErrUnexpectedEOF |
| 1108 | } |
| 1109 | b := dAtA[iNdEx] |
| 1110 | iNdEx++ |
| 1111 | msglen |= int(b&0x7F) << shift |
| 1112 | if b < 0x80 { |
| 1113 | break |
| 1114 | } |
| 1115 | } |
| 1116 | if msglen < 0 { |
| 1117 | return ErrInvalidLengthErrors |
| 1118 | } |
| 1119 | postIndex := iNdEx + msglen |
| 1120 | if postIndex < 0 { |
| 1121 | return ErrInvalidLengthErrors |
| 1122 | } |
| 1123 | if postIndex > l { |
| 1124 | return io.ErrUnexpectedEOF |
| 1125 | } |
no test coverage detected