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

Method Marshal

bitmap/pb.pb.go:8248–8256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8246}
8247
8248func (m *Metadata) Marshal() (dAtA []byte, err error) {
8249 size := m.Size()
8250 dAtA = make([]byte, size)
8251 n, err := m.MarshalToSizedBuffer(dAtA[:size])
8252 if err != nil {
8253 return nil, err
8254 }
8255 return dAtA[:n], nil
8256}
8257
8258func (m *Metadata) MarshalTo(dAtA []byte) (int, error) {
8259 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected