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

Method Marshal

bitmap/pb.pb.go:9209–9217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9207}
9208
9209func (m *SchemaRequest) Marshal() (dAtA []byte, err error) {
9210 size := m.Size()
9211 dAtA = make([]byte, size)
9212 n, err := m.MarshalToSizedBuffer(dAtA[:size])
9213 if err != nil {
9214 return nil, err
9215 }
9216 return dAtA[:n], nil
9217}
9218
9219func (m *SchemaRequest) MarshalTo(dAtA []byte) (int, error) {
9220 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected