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

Method Size

bitmap/pb.pb.go:10723–10743  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10721}
10722
10723func (m *SrcFunction) Size() (n int) {
10724 if m == nil {
10725 return 0
10726 }
10727 var l int
10728 _ = l
10729 l = len(m.Name)
10730 if l > 0 {
10731 n += 1 + l + sovPb(uint64(l))
10732 }
10733 if len(m.Args) > 0 {
10734 for _, s := range m.Args {
10735 l = len(s)
10736 n += 1 + l + sovPb(uint64(l))
10737 }
10738 }
10739 if m.IsCount {
10740 n += 2
10741 }
10742 return n
10743}
10744
10745func (m *Query) Size() (n int) {
10746 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