(data []byte)
| 593 | } |
| 594 | |
| 595 | func (m *UnaryNodePb) MarshalTo(data []byte) (int, error) { |
| 596 | var i int |
| 597 | _ = i |
| 598 | var l int |
| 599 | _ = l |
| 600 | data[i] = 0x8 |
| 601 | i++ |
| 602 | i = encodeVarintNode(data, i, uint64(m.Op)) |
| 603 | data[i] = 0x10 |
| 604 | i++ |
| 605 | if m.Paren { |
| 606 | data[i] = 1 |
| 607 | } else { |
| 608 | data[i] = 0 |
| 609 | } |
| 610 | i++ |
| 611 | data[i] = 0x1a |
| 612 | i++ |
| 613 | i = encodeVarintNode(data, i, uint64(m.Arg.Size())) |
| 614 | n14, err := m.Arg.MarshalTo(data[i:]) |
| 615 | if err != nil { |
| 616 | return 0, err |
| 617 | } |
| 618 | i += n14 |
| 619 | if m.XXX_unrecognized != nil { |
| 620 | i += copy(data[i:], m.XXX_unrecognized) |
| 621 | } |
| 622 | return i, nil |
| 623 | } |
| 624 | |
| 625 | func (m *FuncNodePb) Marshal() (data []byte, err error) { |
| 626 | size := m.Size() |
no test coverage detected