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

Method Marshal

bitmap/pb.pb.go:7125–7133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7123}
7124
7125func (m *Order) Marshal() (dAtA []byte, err error) {
7126 size := m.Size()
7127 dAtA = make([]byte, size)
7128 n, err := m.MarshalToSizedBuffer(dAtA[:size])
7129 if err != nil {
7130 return nil, err
7131 }
7132 return dAtA[:n], nil
7133}
7134
7135func (m *Order) MarshalTo(dAtA []byte) (int, error) {
7136 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected