(dAtA []byte)
| 2523 | return nil |
| 2524 | } |
| 2525 | func (m *GroupStateDesc) Unmarshal(dAtA []byte) error { |
| 2526 | l := len(dAtA) |
| 2527 | iNdEx := 0 |
| 2528 | for iNdEx < l { |
| 2529 | preIndex := iNdEx |
| 2530 | var wire uint64 |
| 2531 | for shift := uint(0); ; shift += 7 { |
| 2532 | if shift >= 64 { |
| 2533 | return ErrIntOverflowRuler |
| 2534 | } |
| 2535 | if iNdEx >= l { |
| 2536 | return io.ErrUnexpectedEOF |
| 2537 | } |
| 2538 | b := dAtA[iNdEx] |
| 2539 | iNdEx++ |
| 2540 | wire |= uint64(b&0x7F) << shift |
| 2541 | if b < 0x80 { |
| 2542 | break |
| 2543 | } |
| 2544 | } |
| 2545 | fieldNum := int32(wire >> 3) |
| 2546 | wireType := int(wire & 0x7) |
| 2547 | if wireType == 4 { |
| 2548 | return fmt.Errorf("proto: GroupStateDesc: wiretype end group for non-group") |
| 2549 | } |
| 2550 | if fieldNum <= 0 { |
| 2551 | return fmt.Errorf("proto: GroupStateDesc: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2552 | } |
| 2553 | switch fieldNum { |
| 2554 | case 1: |
| 2555 | if wireType != 2 { |
| 2556 | return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) |
| 2557 | } |
| 2558 | var msglen int |
| 2559 | for shift := uint(0); ; shift += 7 { |
| 2560 | if shift >= 64 { |
| 2561 | return ErrIntOverflowRuler |
| 2562 | } |
| 2563 | if iNdEx >= l { |
| 2564 | return io.ErrUnexpectedEOF |
| 2565 | } |
| 2566 | b := dAtA[iNdEx] |
| 2567 | iNdEx++ |
| 2568 | msglen |= int(b&0x7F) << shift |
| 2569 | if b < 0x80 { |
| 2570 | break |
| 2571 | } |
| 2572 | } |
| 2573 | if msglen < 0 { |
| 2574 | return ErrInvalidLengthRuler |
| 2575 | } |
| 2576 | postIndex := iNdEx + msglen |
| 2577 | if postIndex < 0 { |
| 2578 | return ErrInvalidLengthRuler |
| 2579 | } |
| 2580 | if postIndex > l { |
| 2581 | return io.ErrUnexpectedEOF |
| 2582 | } |
no test coverage detected