(dAtA []byte)
| 1048 | return nil |
| 1049 | } |
| 1050 | func (m *CompactedBlockMeta) Unmarshal(dAtA []byte) error { |
| 1051 | l := len(dAtA) |
| 1052 | iNdEx := 0 |
| 1053 | for iNdEx < l { |
| 1054 | preIndex := iNdEx |
| 1055 | var wire uint64 |
| 1056 | for shift := uint(0); ; shift += 7 { |
| 1057 | if shift >= 64 { |
| 1058 | return ErrIntOverflowV1 |
| 1059 | } |
| 1060 | if iNdEx >= l { |
| 1061 | return io.ErrUnexpectedEOF |
| 1062 | } |
| 1063 | b := dAtA[iNdEx] |
| 1064 | iNdEx++ |
| 1065 | wire |= uint64(b&0x7F) << shift |
| 1066 | if b < 0x80 { |
| 1067 | break |
| 1068 | } |
| 1069 | } |
| 1070 | fieldNum := int32(wire >> 3) |
| 1071 | wireType := int(wire & 0x7) |
| 1072 | if wireType == 4 { |
| 1073 | return fmt.Errorf("proto: CompactedBlockMeta: wiretype end group for non-group") |
| 1074 | } |
| 1075 | if fieldNum <= 0 { |
| 1076 | return fmt.Errorf("proto: CompactedBlockMeta: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1077 | } |
| 1078 | switch fieldNum { |
| 1079 | case 1: |
| 1080 | if wireType != 2 { |
| 1081 | return fmt.Errorf("proto: wrong wireType = %d for field BlockMeta", wireType) |
| 1082 | } |
| 1083 | var msglen int |
| 1084 | for shift := uint(0); ; shift += 7 { |
| 1085 | if shift >= 64 { |
| 1086 | return ErrIntOverflowV1 |
| 1087 | } |
| 1088 | if iNdEx >= l { |
| 1089 | return io.ErrUnexpectedEOF |
| 1090 | } |
| 1091 | b := dAtA[iNdEx] |
| 1092 | iNdEx++ |
| 1093 | msglen |= int(b&0x7F) << shift |
| 1094 | if b < 0x80 { |
| 1095 | break |
| 1096 | } |
| 1097 | } |
| 1098 | if msglen < 0 { |
| 1099 | return ErrInvalidLengthV1 |
| 1100 | } |
| 1101 | postIndex := iNdEx + msglen |
| 1102 | if postIndex < 0 { |
| 1103 | return ErrInvalidLengthV1 |
| 1104 | } |
| 1105 | if postIndex > l { |
| 1106 | return io.ErrUnexpectedEOF |
| 1107 | } |
no test coverage detected