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

Method Size

bitmap/pb.pb.go:12343–12370  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12341}
12342
12343func (m *BackupKey) Size() (n int) {
12344 if m == nil {
12345 return 0
12346 }
12347 var l int
12348 _ = l
12349 if m.Type != 0 {
12350 n += 1 + sovPb(uint64(m.Type))
12351 }
12352 l = len(m.Attr)
12353 if l > 0 {
12354 n += 1 + l + sovPb(uint64(l))
12355 }
12356 if m.Uid != 0 {
12357 n += 1 + sovPb(uint64(m.Uid))
12358 }
12359 if m.StartUid != 0 {
12360 n += 1 + sovPb(uint64(m.StartUid))
12361 }
12362 l = len(m.Term)
12363 if l > 0 {
12364 n += 1 + l + sovPb(uint64(l))
12365 }
12366 if m.Count != 0 {
12367 n += 1 + sovPb(uint64(m.Count))
12368 }
12369 return n
12370}
12371
12372func (m *BackupPostingList) Size() (n int) {
12373 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