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

Method Size

bitmap/pb.pb.go:11774–11795  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11772}
11773
11774func (m *Function) Size() (n int) {
11775 if m == nil {
11776 return 0
11777 }
11778 var l int
11779 _ = l
11780 l = len(m.Name)
11781 if l > 0 {
11782 n += 1 + l + sovPb(uint64(l))
11783 }
11784 l = len(m.Key)
11785 if l > 0 {
11786 n += 1 + l + sovPb(uint64(l))
11787 }
11788 if len(m.Args) > 0 {
11789 for _, s := range m.Args {
11790 l = len(s)
11791 n += 1 + l + sovPb(uint64(l))
11792 }
11793 }
11794 return n
11795}
11796
11797func (m *FilterTree) Size() (n int) {
11798 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