MCPcopy
hub / github.com/dgraph-io/dgraph / MarshalToSizedBuffer

Function MarshalToSizedBuffer

x/x.go:1393–1396  ·  view source on GitHub ↗
(buf []byte, m proto.Message)

Source from the content-addressed store, hash-verified

1391}
1392
1393func MarshalToSizedBuffer(buf []byte, m proto.Message) ([]byte, error) {
1394 buf = buf[:0]
1395 return proto.MarshalOptions{}.MarshalAppend(buf, m)
1396}
1397
1398// RootTemplate defines the help template for dgraph command.
1399var RootTemplate string = `Dgraph is a horizontally scalable and distributed graph database,

Callers 11

proposeAndWaitMethod · 0.92
marshalMapEntryFunction · 0.92
getEntryForMutationFunction · 0.92
getEntryForCommitFunction · 0.92
toBackupKeyMethod · 0.92
processReqChMethod · 0.92
proposeAndWaitMethod · 0.92
proposeCDCStateMethod · 0.92
proposeSnapshotMethod · 0.92
ToBackupPostingListMethod · 0.92
MarshalPostingListFunction · 0.92

Calls

no outgoing calls

Tested by 2

getEntryForMutationFunction · 0.74
getEntryForCommitFunction · 0.74