(dAtA []byte)
| 1745 | return nil |
| 1746 | } |
| 1747 | func (m *QueryGetContractFileRequest) Unmarshal(dAtA []byte) error { |
| 1748 | l := len(dAtA) |
| 1749 | iNdEx := 0 |
| 1750 | for iNdEx < l { |
| 1751 | preIndex := iNdEx |
| 1752 | var wire uint64 |
| 1753 | for shift := uint(0); ; shift += 7 { |
| 1754 | if shift >= 64 { |
| 1755 | return ErrIntOverflowQuery |
| 1756 | } |
| 1757 | if iNdEx >= l { |
| 1758 | return io.ErrUnexpectedEOF |
| 1759 | } |
| 1760 | b := dAtA[iNdEx] |
| 1761 | iNdEx++ |
| 1762 | wire |= uint64(b&0x7F) << shift |
| 1763 | if b < 0x80 { |
| 1764 | break |
| 1765 | } |
| 1766 | } |
| 1767 | fieldNum := int32(wire >> 3) |
| 1768 | wireType := int(wire & 0x7) |
| 1769 | if wireType == 4 { |
| 1770 | return fmt.Errorf("proto: QueryGetContractFileRequest: wiretype end group for non-group") |
| 1771 | } |
| 1772 | if fieldNum <= 0 { |
| 1773 | return fmt.Errorf("proto: QueryGetContractFileRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1774 | } |
| 1775 | switch fieldNum { |
| 1776 | case 1: |
| 1777 | if wireType != 2 { |
| 1778 | return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) |
| 1779 | } |
| 1780 | var stringLen uint64 |
| 1781 | for shift := uint(0); ; shift += 7 { |
| 1782 | if shift >= 64 { |
| 1783 | return ErrIntOverflowQuery |
| 1784 | } |
| 1785 | if iNdEx >= l { |
| 1786 | return io.ErrUnexpectedEOF |
| 1787 | } |
| 1788 | b := dAtA[iNdEx] |
| 1789 | iNdEx++ |
| 1790 | stringLen |= uint64(b&0x7F) << shift |
| 1791 | if b < 0x80 { |
| 1792 | break |
| 1793 | } |
| 1794 | } |
| 1795 | intStringLen := int(stringLen) |
| 1796 | if intStringLen < 0 { |
| 1797 | return ErrInvalidLengthQuery |
| 1798 | } |
| 1799 | postIndex := iNdEx + intStringLen |
| 1800 | if postIndex < 0 { |
| 1801 | return ErrInvalidLengthQuery |
| 1802 | } |
| 1803 | if postIndex > l { |
| 1804 | return io.ErrUnexpectedEOF |
no test coverage detected