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

Method Marshal

bitmap/pb.pb.go:7174–7182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7172}
7173
7174func (m *SortMessage) Marshal() (dAtA []byte, err error) {
7175 size := m.Size()
7176 dAtA = make([]byte, size)
7177 n, err := m.MarshalToSizedBuffer(dAtA[:size])
7178 if err != nil {
7179 return nil, err
7180 }
7181 return dAtA[:n], nil
7182}
7183
7184func (m *SortMessage) MarshalTo(dAtA []byte) (int, error) {
7185 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected