| 1315 | return nil |
| 1316 | } |
| 1317 | func skipV1(dAtA []byte) (n int, err error) { |
| 1318 | l := len(dAtA) |
| 1319 | iNdEx := 0 |
| 1320 | depth := 0 |
| 1321 | for iNdEx < l { |
| 1322 | var wire uint64 |
| 1323 | for shift := uint(0); ; shift += 7 { |
| 1324 | if shift >= 64 { |
| 1325 | return 0, ErrIntOverflowV1 |
| 1326 | } |
| 1327 | if iNdEx >= l { |
| 1328 | return 0, io.ErrUnexpectedEOF |
| 1329 | } |
| 1330 | b := dAtA[iNdEx] |
| 1331 | iNdEx++ |
| 1332 | wire |= (uint64(b) & 0x7F) << shift |
| 1333 | if b < 0x80 { |
| 1334 | break |
| 1335 | } |
| 1336 | } |
| 1337 | wireType := int(wire & 0x7) |
| 1338 | switch wireType { |
| 1339 | case 0: |
| 1340 | for shift := uint(0); ; shift += 7 { |
| 1341 | if shift >= 64 { |
| 1342 | return 0, ErrIntOverflowV1 |
| 1343 | } |
| 1344 | if iNdEx >= l { |
| 1345 | return 0, io.ErrUnexpectedEOF |
| 1346 | } |
| 1347 | iNdEx++ |
| 1348 | if dAtA[iNdEx-1] < 0x80 { |
| 1349 | break |
| 1350 | } |
| 1351 | } |
| 1352 | case 1: |
| 1353 | iNdEx += 8 |
| 1354 | case 2: |
| 1355 | var length int |
| 1356 | for shift := uint(0); ; shift += 7 { |
| 1357 | if shift >= 64 { |
| 1358 | return 0, ErrIntOverflowV1 |
| 1359 | } |
| 1360 | if iNdEx >= l { |
| 1361 | return 0, io.ErrUnexpectedEOF |
| 1362 | } |
| 1363 | b := dAtA[iNdEx] |
| 1364 | iNdEx++ |
| 1365 | length |= (int(b) & 0x7F) << shift |
| 1366 | if b < 0x80 { |
| 1367 | break |
| 1368 | } |
| 1369 | } |
| 1370 | if length < 0 { |
| 1371 | return 0, ErrInvalidLengthV1 |
| 1372 | } |
| 1373 | iNdEx += length |
| 1374 | case 3: |