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

Method Size

bitmap/pb.pb.go:11392–11407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11390}
11391
11392func (m *Metadata) Size() (n int) {
11393 if m == nil {
11394 return 0
11395 }
11396 var l int
11397 _ = l
11398 if len(m.PredHints) > 0 {
11399 for k, v := range m.PredHints {
11400 _ = k
11401 _ = v
11402 mapEntrySize := 1 + len(k) + sovPb(uint64(len(k))) + 1 + sovPb(uint64(v))
11403 n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize))
11404 }
11405 }
11406 return n
11407}
11408
11409func (m *Snapshot) Size() (n int) {
11410 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