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

Method Size

bitmap/pb.pb.go:10969–11004  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10967}
10968
10969func (m *Member) Size() (n int) {
10970 if m == nil {
10971 return 0
10972 }
10973 var l int
10974 _ = l
10975 if m.Id != 0 {
10976 n += 9
10977 }
10978 if m.GroupId != 0 {
10979 n += 1 + sovPb(uint64(m.GroupId))
10980 }
10981 l = len(m.Addr)
10982 if l > 0 {
10983 n += 1 + l + sovPb(uint64(l))
10984 }
10985 if m.Leader {
10986 n += 2
10987 }
10988 if m.AmDead {
10989 n += 2
10990 }
10991 if m.LastUpdate != 0 {
10992 n += 1 + sovPb(uint64(m.LastUpdate))
10993 }
10994 if m.Learner {
10995 n += 2
10996 }
10997 if m.ClusterInfoOnly {
10998 n += 2
10999 }
11000 if m.ForceGroupId {
11001 n += 2
11002 }
11003 return n
11004}
11005
11006func (m *Group) Size() (n int) {
11007 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