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

Method Marshal

bitmap/pb.pb.go:7973–7981  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7971}
7972
7973func (m *Tablet) Marshal() (dAtA []byte, err error) {
7974 size := m.Size()
7975 dAtA = make([]byte, size)
7976 n, err := m.MarshalToSizedBuffer(dAtA[:size])
7977 if err != nil {
7978 return nil, err
7979 }
7980 return dAtA[:n], nil
7981}
7982
7983func (m *Tablet) MarshalTo(dAtA []byte) (int, error) {
7984 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected