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

Method Marshal

bitmap/pb.pb.go:9417–9425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9415}
9416
9417func (m *SchemaUpdate) Marshal() (dAtA []byte, err error) {
9418 size := m.Size()
9419 dAtA = make([]byte, size)
9420 n, err := m.MarshalToSizedBuffer(dAtA[:size])
9421 if err != nil {
9422 return nil, err
9423 }
9424 return dAtA[:n], nil
9425}
9426
9427func (m *SchemaUpdate) MarshalTo(dAtA []byte) (int, error) {
9428 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected