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

Method Marshal

bitmap/pb.pb.go:9264–9272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9262}
9263
9264func (m *SchemaNode) Marshal() (dAtA []byte, err error) {
9265 size := m.Size()
9266 dAtA = make([]byte, size)
9267 n, err := m.MarshalToSizedBuffer(dAtA[:size])
9268 if err != nil {
9269 return nil, err
9270 }
9271 return dAtA[:n], nil
9272}
9273
9274func (m *SchemaNode) MarshalTo(dAtA []byte) (int, error) {
9275 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected