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

Method MarshalToSizedBuffer

bitmap/pb.pb.go:9602–9617  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

9600}
9601
9602func (m *MapHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9603 i := len(dAtA)
9604 _ = i
9605 var l int
9606 _ = l
9607 if len(m.PartitionKeys) > 0 {
9608 for iNdEx := len(m.PartitionKeys) - 1; iNdEx >= 0; iNdEx-- {
9609 i -= len(m.PartitionKeys[iNdEx])
9610 copy(dAtA[i:], m.PartitionKeys[iNdEx])
9611 i = encodeVarintPb(dAtA, i, uint64(len(m.PartitionKeys[iNdEx])))
9612 i--
9613 dAtA[i] = 0xa
9614 }
9615 }
9616 return len(dAtA) - i, nil
9617}
9618
9619func (m *MovePredicatePayload) Marshal() (dAtA []byte, err error) {
9620 size := m.Size()

Callers 3

XXX_MarshalMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

encodeVarintPbFunction · 0.85

Tested by

no test coverage detected