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

Method Marshal

bitmap/pb.pb.go:10397–10405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10395}
10396
10397func (m *BackupKey) Marshal() (dAtA []byte, err error) {
10398 size := m.Size()
10399 dAtA = make([]byte, size)
10400 n, err := m.MarshalToSizedBuffer(dAtA[:size])
10401 if err != nil {
10402 return nil, err
10403 }
10404 return dAtA[:n], nil
10405}
10406
10407func (m *BackupKey) MarshalTo(dAtA []byte) (int, error) {
10408 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected