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

Method Size

bitmap/pb.pb.go:12033–12057  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12031}
12032
12033func (m *OracleDelta) Size() (n int) {
12034 if m == nil {
12035 return 0
12036 }
12037 var l int
12038 _ = l
12039 if len(m.Txns) > 0 {
12040 for _, e := range m.Txns {
12041 l = e.Size()
12042 n += 1 + l + sovPb(uint64(l))
12043 }
12044 }
12045 if m.MaxAssigned != 0 {
12046 n += 1 + sovPb(uint64(m.MaxAssigned))
12047 }
12048 if len(m.GroupChecksums) > 0 {
12049 for k, v := range m.GroupChecksums {
12050 _ = k
12051 _ = v
12052 mapEntrySize := 1 + sovPb(uint64(k)) + 1 + sovPb(uint64(v))
12053 n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize))
12054 }
12055 }
12056 return n
12057}
12058
12059func (m *TxnTimestamps) Size() (n int) {
12060 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