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

Method Size

bitmap/pb.pb.go:12280–12319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12278}
12279
12280func (m *ExportRequest) Size() (n int) {
12281 if m == nil {
12282 return 0
12283 }
12284 var l int
12285 _ = l
12286 if m.GroupId != 0 {
12287 n += 1 + sovPb(uint64(m.GroupId))
12288 }
12289 if m.ReadTs != 0 {
12290 n += 1 + sovPb(uint64(m.ReadTs))
12291 }
12292 if m.UnixTs != 0 {
12293 n += 1 + sovPb(uint64(m.UnixTs))
12294 }
12295 l = len(m.Format)
12296 if l > 0 {
12297 n += 1 + l + sovPb(uint64(l))
12298 }
12299 l = len(m.Destination)
12300 if l > 0 {
12301 n += 1 + l + sovPb(uint64(l))
12302 }
12303 l = len(m.AccessKey)
12304 if l > 0 {
12305 n += 1 + l + sovPb(uint64(l))
12306 }
12307 l = len(m.SecretKey)
12308 if l > 0 {
12309 n += 1 + l + sovPb(uint64(l))
12310 }
12311 l = len(m.SessionToken)
12312 if l > 0 {
12313 n += 1 + l + sovPb(uint64(l))
12314 }
12315 if m.Anonymous {
12316 n += 2
12317 }
12318 return n
12319}
12320
12321func (m *ExportResponse) Size() (n int) {
12322 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