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

Method Size

bitmap/pb.pb.go:11050–11070  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11048}
11049
11050func (m *License) Size() (n int) {
11051 if m == nil {
11052 return 0
11053 }
11054 var l int
11055 _ = l
11056 l = len(m.User)
11057 if l > 0 {
11058 n += 1 + l + sovPb(uint64(l))
11059 }
11060 if m.MaxNodes != 0 {
11061 n += 1 + sovPb(uint64(m.MaxNodes))
11062 }
11063 if m.ExpiryTs != 0 {
11064 n += 1 + sovPb(uint64(m.ExpiryTs))
11065 }
11066 if m.Enabled {
11067 n += 2
11068 }
11069 return n
11070}
11071
11072func (m *ZeroProposal) Size() (n int) {
11073 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