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

Method Marshal

bitmap/pb.pb.go:10270–10278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10268}
10269
10270func (m *ExportRequest) Marshal() (dAtA []byte, err error) {
10271 size := m.Size()
10272 dAtA = make([]byte, size)
10273 n, err := m.MarshalToSizedBuffer(dAtA[:size])
10274 if err != nil {
10275 return nil, err
10276 }
10277 return dAtA[:n], nil
10278}
10279
10280func (m *ExportRequest) MarshalTo(dAtA []byte) (int, error) {
10281 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected