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

Method Size

bitmap/pb.pb.go:11680–11707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11678}
11679
11680func (m *PostingList) Size() (n int) {
11681 if m == nil {
11682 return 0
11683 }
11684 var l int
11685 _ = l
11686 if m.Pack != nil {
11687 l = m.Pack.Size()
11688 n += 1 + l + sovPb(uint64(l))
11689 }
11690 if len(m.Postings) > 0 {
11691 for _, e := range m.Postings {
11692 l = e.Size()
11693 n += 1 + l + sovPb(uint64(l))
11694 }
11695 }
11696 if m.CommitTs != 0 {
11697 n += 1 + sovPb(uint64(m.CommitTs))
11698 }
11699 if len(m.Splits) > 0 {
11700 l = 0
11701 for _, e := range m.Splits {
11702 l += sovPb(uint64(e))
11703 }
11704 n += 1 + sovPb(uint64(l)) + l
11705 }
11706 return n
11707}
11708
11709func (m *FacetParam) Size() (n int) {
11710 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovPbFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected