(dAtA []byte)
| 13803 | return nil |
| 13804 | } |
| 13805 | func (m *SortMessage) Unmarshal(dAtA []byte) error { |
| 13806 | l := len(dAtA) |
| 13807 | iNdEx := 0 |
| 13808 | for iNdEx < l { |
| 13809 | preIndex := iNdEx |
| 13810 | var wire uint64 |
| 13811 | for shift := uint(0); ; shift += 7 { |
| 13812 | if shift >= 64 { |
| 13813 | return ErrIntOverflowPb |
| 13814 | } |
| 13815 | if iNdEx >= l { |
| 13816 | return io.ErrUnexpectedEOF |
| 13817 | } |
| 13818 | b := dAtA[iNdEx] |
| 13819 | iNdEx++ |
| 13820 | wire |= uint64(b&0x7F) << shift |
| 13821 | if b < 0x80 { |
| 13822 | break |
| 13823 | } |
| 13824 | } |
| 13825 | fieldNum := int32(wire >> 3) |
| 13826 | wireType := int(wire & 0x7) |
| 13827 | if wireType == 4 { |
| 13828 | return fmt.Errorf("proto: SortMessage: wiretype end group for non-group") |
| 13829 | } |
| 13830 | if fieldNum <= 0 { |
| 13831 | return fmt.Errorf("proto: SortMessage: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13832 | } |
| 13833 | switch fieldNum { |
| 13834 | case 1: |
| 13835 | if wireType != 2 { |
| 13836 | return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) |
| 13837 | } |
| 13838 | var msglen int |
| 13839 | for shift := uint(0); ; shift += 7 { |
| 13840 | if shift >= 64 { |
| 13841 | return ErrIntOverflowPb |
| 13842 | } |
| 13843 | if iNdEx >= l { |
| 13844 | return io.ErrUnexpectedEOF |
| 13845 | } |
| 13846 | b := dAtA[iNdEx] |
| 13847 | iNdEx++ |
| 13848 | msglen |= int(b&0x7F) << shift |
| 13849 | if b < 0x80 { |
| 13850 | break |
| 13851 | } |
| 13852 | } |
| 13853 | if msglen < 0 { |
| 13854 | return ErrInvalidLengthPb |
| 13855 | } |
| 13856 | postIndex := iNdEx + msglen |
| 13857 | if postIndex < 0 { |
| 13858 | return ErrInvalidLengthPb |
| 13859 | } |
| 13860 | if postIndex > l { |
| 13861 | return io.ErrUnexpectedEOF |
| 13862 | } |
no test coverage detected