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

Method Size

bitmap/pb.pb.go:11726–11742  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11724}
11725
11726func (m *FacetParams) Size() (n int) {
11727 if m == nil {
11728 return 0
11729 }
11730 var l int
11731 _ = l
11732 if m.AllKeys {
11733 n += 2
11734 }
11735 if len(m.Param) > 0 {
11736 for _, e := range m.Param {
11737 l = e.Size()
11738 n += 1 + l + sovPb(uint64(l))
11739 }
11740 }
11741 return n
11742}
11743
11744func (m *Facets) Size() (n int) {
11745 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