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

Method Size

bitmap/pb.pb.go:11640–11657  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11638}
11639
11640func (m *UidBlock) Size() (n int) {
11641 if m == nil {
11642 return 0
11643 }
11644 var l int
11645 _ = l
11646 if m.Base != 0 {
11647 n += 1 + sovPb(uint64(m.Base))
11648 }
11649 l = len(m.Deltas)
11650 if l > 0 {
11651 n += 1 + l + sovPb(uint64(l))
11652 }
11653 if m.NumUids != 0 {
11654 n += 1 + sovPb(uint64(m.NumUids))
11655 }
11656 return n
11657}
11658
11659func (m *UidPack) Size() (n int) {
11660 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