MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / Marshal

Method Marshal

bitmap/pb.pb.go:9107–9115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9105}
9106
9107func (m *Function) Marshal() (dAtA []byte, err error) {
9108 size := m.Size()
9109 dAtA = make([]byte, size)
9110 n, err := m.MarshalToSizedBuffer(dAtA[:size])
9111 if err != nil {
9112 return nil, err
9113 }
9114 return dAtA[:n], nil
9115}
9116
9117func (m *Function) MarshalTo(dAtA []byte) (int, error) {
9118 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected