()
| 385 | return base |
| 386 | } |
| 387 | func (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 | |
| 402 | func (m *KeyValuePair) Size() (n int) { |
| 403 | if m == nil { |