| 3158 | return nil |
| 3159 | } |
| 3160 | func skipTypes(dAtA []byte) (n int, err error) { |
| 3161 | l := len(dAtA) |
| 3162 | iNdEx := 0 |
| 3163 | depth := 0 |
| 3164 | for iNdEx < l { |
| 3165 | var wire uint64 |
| 3166 | for shift := uint(0); ; shift += 7 { |
| 3167 | if shift >= 64 { |
| 3168 | return 0, ErrIntOverflowTypes |
| 3169 | } |
| 3170 | if iNdEx >= l { |
| 3171 | return 0, io.ErrUnexpectedEOF |
| 3172 | } |
| 3173 | b := dAtA[iNdEx] |
| 3174 | iNdEx++ |
| 3175 | wire |= (uint64(b) & 0x7F) << shift |
| 3176 | if b < 0x80 { |
| 3177 | break |
| 3178 | } |
| 3179 | } |
| 3180 | wireType := int(wire & 0x7) |
| 3181 | switch wireType { |
| 3182 | case 0: |
| 3183 | for shift := uint(0); ; shift += 7 { |
| 3184 | if shift >= 64 { |
| 3185 | return 0, ErrIntOverflowTypes |
| 3186 | } |
| 3187 | if iNdEx >= l { |
| 3188 | return 0, io.ErrUnexpectedEOF |
| 3189 | } |
| 3190 | iNdEx++ |
| 3191 | if dAtA[iNdEx-1] < 0x80 { |
| 3192 | break |
| 3193 | } |
| 3194 | } |
| 3195 | case 1: |
| 3196 | iNdEx += 8 |
| 3197 | case 2: |
| 3198 | var length int |
| 3199 | for shift := uint(0); ; shift += 7 { |
| 3200 | if shift >= 64 { |
| 3201 | return 0, ErrIntOverflowTypes |
| 3202 | } |
| 3203 | if iNdEx >= l { |
| 3204 | return 0, io.ErrUnexpectedEOF |
| 3205 | } |
| 3206 | b := dAtA[iNdEx] |
| 3207 | iNdEx++ |
| 3208 | length |= (int(b) & 0x7F) << shift |
| 3209 | if b < 0x80 { |
| 3210 | break |
| 3211 | } |
| 3212 | } |
| 3213 | if length < 0 { |
| 3214 | return 0, ErrInvalidLengthTypes |
| 3215 | } |
| 3216 | iNdEx += length |
| 3217 | case 3: |