(dAtA []byte)
| 8033 | return nil |
| 8034 | } |
| 8035 | func (m *SearchBlockRequest) Unmarshal(dAtA []byte) error { |
| 8036 | l := len(dAtA) |
| 8037 | iNdEx := 0 |
| 8038 | for iNdEx < l { |
| 8039 | preIndex := iNdEx |
| 8040 | var wire uint64 |
| 8041 | for shift := uint(0); ; shift += 7 { |
| 8042 | if shift >= 64 { |
| 8043 | return ErrIntOverflowTempo |
| 8044 | } |
| 8045 | if iNdEx >= l { |
| 8046 | return io.ErrUnexpectedEOF |
| 8047 | } |
| 8048 | b := dAtA[iNdEx] |
| 8049 | iNdEx++ |
| 8050 | wire |= uint64(b&0x7F) << shift |
| 8051 | if b < 0x80 { |
| 8052 | break |
| 8053 | } |
| 8054 | } |
| 8055 | fieldNum := int32(wire >> 3) |
| 8056 | wireType := int(wire & 0x7) |
| 8057 | if wireType == 4 { |
| 8058 | return fmt.Errorf("proto: SearchBlockRequest: wiretype end group for non-group") |
| 8059 | } |
| 8060 | if fieldNum <= 0 { |
| 8061 | return fmt.Errorf("proto: SearchBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 8062 | } |
| 8063 | switch fieldNum { |
| 8064 | case 1: |
| 8065 | if wireType != 2 { |
| 8066 | return fmt.Errorf("proto: wrong wireType = %d for field SearchReq", wireType) |
| 8067 | } |
| 8068 | var msglen int |
| 8069 | for shift := uint(0); ; shift += 7 { |
| 8070 | if shift >= 64 { |
| 8071 | return ErrIntOverflowTempo |
| 8072 | } |
| 8073 | if iNdEx >= l { |
| 8074 | return io.ErrUnexpectedEOF |
| 8075 | } |
| 8076 | b := dAtA[iNdEx] |
| 8077 | iNdEx++ |
| 8078 | msglen |= int(b&0x7F) << shift |
| 8079 | if b < 0x80 { |
| 8080 | break |
| 8081 | } |
| 8082 | } |
| 8083 | if msglen < 0 { |
| 8084 | return ErrInvalidLengthTempo |
| 8085 | } |
| 8086 | postIndex := iNdEx + msglen |
| 8087 | if postIndex < 0 { |
| 8088 | return ErrInvalidLengthTempo |
| 8089 | } |
| 8090 | if postIndex > l { |
| 8091 | return io.ErrUnexpectedEOF |
| 8092 | } |
no test coverage detected