MCPcopy
hub / github.com/grafana/dskit / Size

Method Size

kv/memberlist/kv.pb.go:387–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

385 return base
386}
387func (m *KeyValueStore) Size() (n int) {
388 if m == nil {
389 return 0
390 }
391 var l int
392 _ = l
393 if len(m.Pairs) > 0 {
394 for _, e := range m.Pairs {
395 l = e.Size()
396 n += 1 + l + sovKv(uint64(l))
397 }
398 }
399 return n
400}
401
402func (m *KeyValuePair) Size() (n int) {
403 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovKvFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected