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

Method Marshal

bitmap/pb.pb.go:9587–9595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9585}
9586
9587func (m *MapHeader) Marshal() (dAtA []byte, err error) {
9588 size := m.Size()
9589 dAtA = make([]byte, size)
9590 n, err := m.MarshalToSizedBuffer(dAtA[:size])
9591 if err != nil {
9592 return nil, err
9593 }
9594 return dAtA[:n], nil
9595}
9596
9597func (m *MapHeader) MarshalTo(dAtA []byte) (int, error) {
9598 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected