| 11678 | } |
| 11679 | |
| 11680 | func (m *PostingList) Size() (n int) { |
| 11681 | if m == nil { |
| 11682 | return 0 |
| 11683 | } |
| 11684 | var l int |
| 11685 | _ = l |
| 11686 | if m.Pack != nil { |
| 11687 | l = m.Pack.Size() |
| 11688 | n += 1 + l + sovPb(uint64(l)) |
| 11689 | } |
| 11690 | if len(m.Postings) > 0 { |
| 11691 | for _, e := range m.Postings { |
| 11692 | l = e.Size() |
| 11693 | n += 1 + l + sovPb(uint64(l)) |
| 11694 | } |
| 11695 | } |
| 11696 | if m.CommitTs != 0 { |
| 11697 | n += 1 + sovPb(uint64(m.CommitTs)) |
| 11698 | } |
| 11699 | if len(m.Splits) > 0 { |
| 11700 | l = 0 |
| 11701 | for _, e := range m.Splits { |
| 11702 | l += sovPb(uint64(e)) |
| 11703 | } |
| 11704 | n += 1 + sovPb(uint64(l)) + l |
| 11705 | } |
| 11706 | return n |
| 11707 | } |
| 11708 | |
| 11709 | func (m *FacetParam) Size() (n int) { |
| 11710 | if m == nil { |