| 3359 | return nil |
| 3360 | } |
| 3361 | func skipRuler(dAtA []byte) (n int, err error) { |
| 3362 | l := len(dAtA) |
| 3363 | iNdEx := 0 |
| 3364 | for iNdEx < l { |
| 3365 | var wire uint64 |
| 3366 | for shift := uint(0); ; shift += 7 { |
| 3367 | if shift >= 64 { |
| 3368 | return 0, ErrIntOverflowRuler |
| 3369 | } |
| 3370 | if iNdEx >= l { |
| 3371 | return 0, io.ErrUnexpectedEOF |
| 3372 | } |
| 3373 | b := dAtA[iNdEx] |
| 3374 | iNdEx++ |
| 3375 | wire |= (uint64(b) & 0x7F) << shift |
| 3376 | if b < 0x80 { |
| 3377 | break |
| 3378 | } |
| 3379 | } |
| 3380 | wireType := int(wire & 0x7) |
| 3381 | switch wireType { |
| 3382 | case 0: |
| 3383 | for shift := uint(0); ; shift += 7 { |
| 3384 | if shift >= 64 { |
| 3385 | return 0, ErrIntOverflowRuler |
| 3386 | } |
| 3387 | if iNdEx >= l { |
| 3388 | return 0, io.ErrUnexpectedEOF |
| 3389 | } |
| 3390 | iNdEx++ |
| 3391 | if dAtA[iNdEx-1] < 0x80 { |
| 3392 | break |
| 3393 | } |
| 3394 | } |
| 3395 | return iNdEx, nil |
| 3396 | case 1: |
| 3397 | iNdEx += 8 |
| 3398 | return iNdEx, nil |
| 3399 | case 2: |
| 3400 | var length int |
| 3401 | for shift := uint(0); ; shift += 7 { |
| 3402 | if shift >= 64 { |
| 3403 | return 0, ErrIntOverflowRuler |
| 3404 | } |
| 3405 | if iNdEx >= l { |
| 3406 | return 0, io.ErrUnexpectedEOF |
| 3407 | } |
| 3408 | b := dAtA[iNdEx] |
| 3409 | iNdEx++ |
| 3410 | length |= (int(b) & 0x7F) << shift |
| 3411 | if b < 0x80 { |
| 3412 | break |
| 3413 | } |
| 3414 | } |
| 3415 | if length < 0 { |
| 3416 | return 0, ErrInvalidLengthRuler |
| 3417 | } |
| 3418 | iNdEx += length |