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

Method Marshal

bitmap/pb.pb.go:10630–10638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10628}
10629
10630func (m *BulkMeta) Marshal() (dAtA []byte, err error) {
10631 size := m.Size()
10632 dAtA = make([]byte, size)
10633 n, err := m.MarshalToSizedBuffer(dAtA[:size])
10634 if err != nil {
10635 return nil, err
10636 }
10637 return dAtA[:n], nil
10638}
10639
10640func (m *BulkMeta) MarshalTo(dAtA []byte) (int, error) {
10641 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected