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

Method Marshal

expr/node.pb.go:254–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252 proto.RegisterType((*NullNodePb)(nil), "expr.NullNodePb")
253}
254func (m *ExprPb) Marshal() (data []byte, err error) {
255 size := m.Size()
256 data = make([]byte, size)
257 n, err := m.MarshalTo(data)
258 if err != nil {
259 return nil, err
260 }
261 return data[:n], nil
262}
263
264func (m *ExprPb) MarshalTo(data []byte) (int, error) {
265 var i int

Callers 1

TestNodePbFunction · 0.45

Calls 2

SizeMethod · 0.95
MarshalToMethod · 0.95

Tested by 1

TestNodePbFunction · 0.36