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

Method Marshal

bitmap/pb.pb.go:6801–6809  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6799}
6800
6801func (m *Query) Marshal() (dAtA []byte, err error) {
6802 size := m.Size()
6803 dAtA = make([]byte, size)
6804 n, err := m.MarshalToSizedBuffer(dAtA[:size])
6805 if err != nil {
6806 return nil, err
6807 }
6808 return dAtA[:n], nil
6809}
6810
6811func (m *Query) MarshalTo(dAtA []byte) (int, error) {
6812 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected