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

Method Size

bitmap/pb.pb.go:11265–11297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11263}
11264
11265func (m *Tablet) Size() (n int) {
11266 if m == nil {
11267 return 0
11268 }
11269 var l int
11270 _ = l
11271 if m.GroupId != 0 {
11272 n += 1 + sovPb(uint64(m.GroupId))
11273 }
11274 l = len(m.Predicate)
11275 if l > 0 {
11276 n += 1 + l + sovPb(uint64(l))
11277 }
11278 if m.Force {
11279 n += 2
11280 }
11281 if m.OnDiskBytes != 0 {
11282 n += 1 + sovPb(uint64(m.OnDiskBytes))
11283 }
11284 if m.Remove {
11285 n += 2
11286 }
11287 if m.ReadOnly {
11288 n += 2
11289 }
11290 if m.MoveTs != 0 {
11291 n += 1 + sovPb(uint64(m.MoveTs))
11292 }
11293 if m.UncompressedBytes != 0 {
11294 n += 1 + sovPb(uint64(m.UncompressedBytes))
11295 }
11296 return n
11297}
11298
11299func (m *DirectedEdge) Size() (n int) {
11300 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