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

Method Size

bitmap/pb.pb.go:11993–12016  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11991}
11992
11993func (m *MovePredicatePayload) Size() (n int) {
11994 if m == nil {
11995 return 0
11996 }
11997 var l int
11998 _ = l
11999 l = len(m.Predicate)
12000 if l > 0 {
12001 n += 1 + l + sovPb(uint64(l))
12002 }
12003 if m.SourceGid != 0 {
12004 n += 1 + sovPb(uint64(m.SourceGid))
12005 }
12006 if m.DestGid != 0 {
12007 n += 1 + sovPb(uint64(m.DestGid))
12008 }
12009 if m.TxnTs != 0 {
12010 n += 1 + sovPb(uint64(m.TxnTs))
12011 }
12012 if m.ExpectedChecksum != 0 {
12013 n += 1 + sovPb(uint64(m.ExpectedChecksum))
12014 }
12015 return n
12016}
12017
12018func (m *TxnStatus) Size() (n int) {
12019 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

sovPbFunction · 0.85

Tested by

no test coverage detected