(data []byte)
| 786 | } |
| 787 | |
| 788 | func (m *IdentityNodePb) MarshalTo(data []byte) (int, error) { |
| 789 | var i int |
| 790 | _ = i |
| 791 | var l int |
| 792 | _ = l |
| 793 | if m.Quote != nil { |
| 794 | data[i] = 0x8 |
| 795 | i++ |
| 796 | i = encodeVarintNode(data, i, uint64(*m.Quote)) |
| 797 | } |
| 798 | data[i] = 0x1a |
| 799 | i++ |
| 800 | i = encodeVarintNode(data, i, uint64(len(m.Text))) |
| 801 | i += copy(data[i:], m.Text) |
| 802 | if m.XXX_unrecognized != nil { |
| 803 | i += copy(data[i:], m.XXX_unrecognized) |
| 804 | } |
| 805 | return i, nil |
| 806 | } |
| 807 | |
| 808 | func (m *NumberNodePb) Marshal() (data []byte, err error) { |
| 809 | size := m.Size() |
no test coverage detected