(data []byte)
| 553 | } |
| 554 | |
| 555 | func (m *IncludeNodePb) MarshalTo(data []byte) (int, error) { |
| 556 | var i int |
| 557 | _ = i |
| 558 | var l int |
| 559 | _ = l |
| 560 | data[i] = 0x8 |
| 561 | i++ |
| 562 | i = encodeVarintNode(data, i, uint64(m.Op)) |
| 563 | data[i] = 0x10 |
| 564 | i++ |
| 565 | if m.Negated { |
| 566 | data[i] = 1 |
| 567 | } else { |
| 568 | data[i] = 0 |
| 569 | } |
| 570 | i++ |
| 571 | data[i] = 0x1a |
| 572 | i++ |
| 573 | i = encodeVarintNode(data, i, uint64(m.Identity.Size())) |
| 574 | n13, err := m.Identity.MarshalTo(data[i:]) |
| 575 | if err != nil { |
| 576 | return 0, err |
| 577 | } |
| 578 | i += n13 |
| 579 | if m.XXX_unrecognized != nil { |
| 580 | i += copy(data[i:], m.XXX_unrecognized) |
| 581 | } |
| 582 | return i, nil |
| 583 | } |
| 584 | |
| 585 | func (m *UnaryNodePb) Marshal() (data []byte, err error) { |
| 586 | size := m.Size() |
no test coverage detected