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

Method Marshal

bitmap/pb.pb.go:10198–10206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10196}
10197
10198func (m *BackupResponse) Marshal() (dAtA []byte, err error) {
10199 size := m.Size()
10200 dAtA = make([]byte, size)
10201 n, err := m.MarshalToSizedBuffer(dAtA[:size])
10202 if err != nil {
10203 return nil, err
10204 }
10205 return dAtA[:n], nil
10206}
10207
10208func (m *BackupResponse) MarshalTo(dAtA []byte) (int, error) {
10209 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected