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

Method Marshal

bitmap/pb.pb.go:7240–7248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7238}
7239
7240func (m *SortResult) Marshal() (dAtA []byte, err error) {
7241 size := m.Size()
7242 dAtA = make([]byte, size)
7243 n, err := m.MarshalToSizedBuffer(dAtA[:size])
7244 if err != nil {
7245 return nil, err
7246 }
7247 return dAtA[:n], nil
7248}
7249
7250func (m *SortResult) MarshalTo(dAtA []byte) (int, error) {
7251 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected