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

Method Marshal

bitmap/pb.pb.go:9912–9920  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9910}
9911
9912func (m *SubscriptionResponse) Marshal() (dAtA []byte, err error) {
9913 size := m.Size()
9914 dAtA = make([]byte, size)
9915 n, err := m.MarshalToSizedBuffer(dAtA[:size])
9916 if err != nil {
9917 return nil, err
9918 }
9919 return dAtA[:n], nil
9920}
9921
9922func (m *SubscriptionResponse) MarshalTo(dAtA []byte) (int, error) {
9923 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected