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

Method Size

bitmap/pb.pb.go:10899–10927  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10897}
10898
10899func (m *SortMessage) Size() (n int) {
10900 if m == nil {
10901 return 0
10902 }
10903 var l int
10904 _ = l
10905 if len(m.Order) > 0 {
10906 for _, e := range m.Order {
10907 l = e.Size()
10908 n += 1 + l + sovPb(uint64(l))
10909 }
10910 }
10911 if len(m.UidMatrix) > 0 {
10912 for _, e := range m.UidMatrix {
10913 l = e.Size()
10914 n += 1 + l + sovPb(uint64(l))
10915 }
10916 }
10917 if m.Count != 0 {
10918 n += 1 + sovPb(uint64(m.Count))
10919 }
10920 if m.Offset != 0 {
10921 n += 1 + sovPb(uint64(m.Offset))
10922 }
10923 if m.ReadTs != 0 {
10924 n += 1 + sovPb(uint64(m.ReadTs))
10925 }
10926 return n
10927}
10928
10929func (m *SortResult) Size() (n int) {
10930 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