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

Method Marshal

bitmap/pb.pb.go:10235–10243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10233}
10234
10235func (m *DropOperation) Marshal() (dAtA []byte, err error) {
10236 size := m.Size()
10237 dAtA = make([]byte, size)
10238 n, err := m.MarshalToSizedBuffer(dAtA[:size])
10239 if err != nil {
10240 return nil, err
10241 }
10242 return dAtA[:n], nil
10243}
10244
10245func (m *DropOperation) MarshalTo(dAtA []byte) (int, error) {
10246 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected