(dAtA []byte)
| 21348 | return nil |
| 21349 | } |
| 21350 | func (m *OracleDelta) Unmarshal(dAtA []byte) error { |
| 21351 | l := len(dAtA) |
| 21352 | iNdEx := 0 |
| 21353 | for iNdEx < l { |
| 21354 | preIndex := iNdEx |
| 21355 | var wire uint64 |
| 21356 | for shift := uint(0); ; shift += 7 { |
| 21357 | if shift >= 64 { |
| 21358 | return ErrIntOverflowPb |
| 21359 | } |
| 21360 | if iNdEx >= l { |
| 21361 | return io.ErrUnexpectedEOF |
| 21362 | } |
| 21363 | b := dAtA[iNdEx] |
| 21364 | iNdEx++ |
| 21365 | wire |= uint64(b&0x7F) << shift |
| 21366 | if b < 0x80 { |
| 21367 | break |
| 21368 | } |
| 21369 | } |
| 21370 | fieldNum := int32(wire >> 3) |
| 21371 | wireType := int(wire & 0x7) |
| 21372 | if wireType == 4 { |
| 21373 | return fmt.Errorf("proto: OracleDelta: wiretype end group for non-group") |
| 21374 | } |
| 21375 | if fieldNum <= 0 { |
| 21376 | return fmt.Errorf("proto: OracleDelta: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21377 | } |
| 21378 | switch fieldNum { |
| 21379 | case 1: |
| 21380 | if wireType != 2 { |
| 21381 | return fmt.Errorf("proto: wrong wireType = %d for field Txns", wireType) |
| 21382 | } |
| 21383 | var msglen int |
| 21384 | for shift := uint(0); ; shift += 7 { |
| 21385 | if shift >= 64 { |
| 21386 | return ErrIntOverflowPb |
| 21387 | } |
| 21388 | if iNdEx >= l { |
| 21389 | return io.ErrUnexpectedEOF |
| 21390 | } |
| 21391 | b := dAtA[iNdEx] |
| 21392 | iNdEx++ |
| 21393 | msglen |= int(b&0x7F) << shift |
| 21394 | if b < 0x80 { |
| 21395 | break |
| 21396 | } |
| 21397 | } |
| 21398 | if msglen < 0 { |
| 21399 | return ErrInvalidLengthPb |
| 21400 | } |
| 21401 | postIndex := iNdEx + msglen |
| 21402 | if postIndex < 0 { |
| 21403 | return ErrInvalidLengthPb |
| 21404 | } |
| 21405 | if postIndex > l { |
| 21406 | return io.ErrUnexpectedEOF |
| 21407 | } |
no test coverage detected