MCPcopy Create free account
hub / github.com/araddon/qlbridge / MarshalTo

Method MarshalTo

expr/node.pb.go:788–806  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

786}
787
788func (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
808func (m *NumberNodePb) Marshal() (data []byte, err error) {
809 size := m.Size()

Callers 1

MarshalMethod · 0.95

Calls 1

encodeVarintNodeFunction · 0.85

Tested by

no test coverage detected