(dAtA []byte)
| 3856 | return nil |
| 3857 | } |
| 3858 | func (m *CachedResponse) Unmarshal(dAtA []byte) error { |
| 3859 | l := len(dAtA) |
| 3860 | iNdEx := 0 |
| 3861 | for iNdEx < l { |
| 3862 | preIndex := iNdEx |
| 3863 | var wire uint64 |
| 3864 | for shift := uint(0); ; shift += 7 { |
| 3865 | if shift >= 64 { |
| 3866 | return ErrIntOverflowQuery |
| 3867 | } |
| 3868 | if iNdEx >= l { |
| 3869 | return io.ErrUnexpectedEOF |
| 3870 | } |
| 3871 | b := dAtA[iNdEx] |
| 3872 | iNdEx++ |
| 3873 | wire |= uint64(b&0x7F) << shift |
| 3874 | if b < 0x80 { |
| 3875 | break |
| 3876 | } |
| 3877 | } |
| 3878 | fieldNum := int32(wire >> 3) |
| 3879 | wireType := int(wire & 0x7) |
| 3880 | if wireType == 4 { |
| 3881 | return fmt.Errorf("proto: CachedResponse: wiretype end group for non-group") |
| 3882 | } |
| 3883 | if fieldNum <= 0 { |
| 3884 | return fmt.Errorf("proto: CachedResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3885 | } |
| 3886 | switch fieldNum { |
| 3887 | case 1: |
| 3888 | if wireType != 2 { |
| 3889 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 3890 | } |
| 3891 | var stringLen uint64 |
| 3892 | for shift := uint(0); ; shift += 7 { |
| 3893 | if shift >= 64 { |
| 3894 | return ErrIntOverflowQuery |
| 3895 | } |
| 3896 | if iNdEx >= l { |
| 3897 | return io.ErrUnexpectedEOF |
| 3898 | } |
| 3899 | b := dAtA[iNdEx] |
| 3900 | iNdEx++ |
| 3901 | stringLen |= uint64(b&0x7F) << shift |
| 3902 | if b < 0x80 { |
| 3903 | break |
| 3904 | } |
| 3905 | } |
| 3906 | intStringLen := int(stringLen) |
| 3907 | if intStringLen < 0 { |
| 3908 | return ErrInvalidLengthQuery |
| 3909 | } |
| 3910 | postIndex := iNdEx + intStringLen |
| 3911 | if postIndex < 0 { |
| 3912 | return ErrInvalidLengthQuery |
| 3913 | } |
| 3914 | if postIndex > l { |
| 3915 | return io.ErrUnexpectedEOF |
no test coverage detected