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

Method Size

bitmap/pb.pb.go:10877–10897  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10875}
10876
10877func (m *Order) Size() (n int) {
10878 if m == nil {
10879 return 0
10880 }
10881 var l int
10882 _ = l
10883 l = len(m.Attr)
10884 if l > 0 {
10885 n += 1 + l + sovPb(uint64(l))
10886 }
10887 if m.Desc {
10888 n += 2
10889 }
10890 if len(m.Langs) > 0 {
10891 for _, s := range m.Langs {
10892 l = len(s)
10893 n += 1 + l + sovPb(uint64(l))
10894 }
10895 }
10896 return n
10897}
10898
10899func (m *SortMessage) Size() (n int) {
10900 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