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

Method Size

bitmap/pb.pb.go:11820–11848  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11818}
11819
11820func (m *SchemaRequest) Size() (n int) {
11821 if m == nil {
11822 return 0
11823 }
11824 var l int
11825 _ = l
11826 if m.GroupId != 0 {
11827 n += 1 + sovPb(uint64(m.GroupId))
11828 }
11829 if len(m.Predicates) > 0 {
11830 for _, s := range m.Predicates {
11831 l = len(s)
11832 n += 1 + l + sovPb(uint64(l))
11833 }
11834 }
11835 if len(m.Fields) > 0 {
11836 for _, s := range m.Fields {
11837 l = len(s)
11838 n += 1 + l + sovPb(uint64(l))
11839 }
11840 }
11841 if len(m.Types) > 0 {
11842 for _, s := range m.Types {
11843 l = len(s)
11844 n += 1 + l + sovPb(uint64(l))
11845 }
11846 }
11847 return n
11848}
11849
11850func (m *SchemaNode) Size() (n int) {
11851 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