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

Method Marshal

bitmap/pb.pb.go:6752–6760  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6750}
6751
6752func (m *SrcFunction) Marshal() (dAtA []byte, err error) {
6753 size := m.Size()
6754 dAtA = make([]byte, size)
6755 n, err := m.MarshalToSizedBuffer(dAtA[:size])
6756 if err != nil {
6757 return nil, err
6758 }
6759 return dAtA[:n], nil
6760}
6761
6762func (m *SrcFunction) MarshalTo(dAtA []byte) (int, error) {
6763 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected