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

Method Size

bitmap/pb.pb.go:12321–12341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12319}
12320
12321func (m *ExportResponse) Size() (n int) {
12322 if m == nil {
12323 return 0
12324 }
12325 var l int
12326 _ = l
12327 if m.Code != 0 {
12328 n += 1 + sovPb(uint64(m.Code))
12329 }
12330 l = len(m.Msg)
12331 if l > 0 {
12332 n += 1 + l + sovPb(uint64(l))
12333 }
12334 if len(m.Files) > 0 {
12335 for _, s := range m.Files {
12336 l = len(s)
12337 n += 1 + l + sovPb(uint64(l))
12338 }
12339 }
12340 return n
12341}
12342
12343func (m *BackupKey) Size() (n int) {
12344 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