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

Method Marshal

bitmap/pb.pb.go:9702–9710  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9700}
9701
9702func (m *OracleDelta) Marshal() (dAtA []byte, err error) {
9703 size := m.Size()
9704 dAtA = make([]byte, size)
9705 n, err := m.MarshalToSizedBuffer(dAtA[:size])
9706 if err != nil {
9707 return nil, err
9708 }
9709 return dAtA[:n], nil
9710}
9711
9712func (m *OracleDelta) MarshalTo(dAtA []byte) (int, error) {
9713 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected