| 1522 | return nil |
| 1523 | } |
| 1524 | func (m *Pool) Unmarshal(dAtA []byte) error { |
| 1525 | l := len(dAtA) |
| 1526 | iNdEx := 0 |
| 1527 | for iNdEx < l { |
| 1528 | preIndex := iNdEx |
| 1529 | var wire uint64 |
| 1530 | for shift := uint(0); ; shift += 7 { |
| 1531 | if shift >= 64 { |
| 1532 | return ErrIntOverflowTypes |
| 1533 | } |
| 1534 | if iNdEx >= l { |
| 1535 | return io.ErrUnexpectedEOF |
| 1536 | } |
| 1537 | b := dAtA[iNdEx] |
| 1538 | iNdEx++ |
| 1539 | wire |= uint64(b&0x7F) << shift |
| 1540 | if b < 0x80 { |
| 1541 | break |
| 1542 | } |
| 1543 | } |
| 1544 | fieldNum := int32(wire >> 3) |
| 1545 | wireType := int(wire & 0x7) |
| 1546 | if wireType == 4 { |
| 1547 | return fmt.Errorf("proto: Pool: wiretype end group for non-group") |
| 1548 | } |
| 1549 | if fieldNum <= 0 { |
| 1550 | return fmt.Errorf("proto: Pool: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1551 | } |
| 1552 | switch fieldNum { |
| 1553 | case 1: |
| 1554 | if wireType != 2 { |
| 1555 | return fmt.Errorf("proto: wrong wireType = %d for field ExternalAsset", wireType) |
| 1556 | } |
| 1557 | var msglen int |
| 1558 | for shift := uint(0); ; shift += 7 { |
| 1559 | if shift >= 64 { |
| 1560 | return ErrIntOverflowTypes |
| 1561 | } |
| 1562 | if iNdEx >= l { |
| 1563 | return io.ErrUnexpectedEOF |
| 1564 | } |
| 1565 | b := dAtA[iNdEx] |
| 1566 | iNdEx++ |
| 1567 | msglen |= int(b&0x7F) << shift |
| 1568 | if b < 0x80 { |
| 1569 | break |
| 1570 | } |
| 1571 | } |
| 1572 | if msglen < 0 { |
| 1573 | return ErrInvalidLengthTypes |
| 1574 | } |
| 1575 | postIndex := iNdEx + msglen |
| 1576 | if postIndex < 0 { |
| 1577 | return ErrInvalidLengthTypes |
| 1578 | } |
| 1579 | if postIndex > l { |
| 1580 | return io.ErrUnexpectedEOF |
| 1581 | } |