Or returns the union of rc and b.
(b *Bitmap)
| 2768 | |
| 2769 | // Or returns the union of rc and b. |
| 2770 | func (rc *runContainer16) Or(b *Bitmap) *Bitmap { |
| 2771 | out := b.Clone() |
| 2772 | for _, p := range rc.iv { |
| 2773 | plast := p.last() |
| 2774 | for v := p.start; v <= plast; v++ { |
| 2775 | out.Add(uint32(v)) |
| 2776 | } |
| 2777 | } |
| 2778 | return out |
| 2779 | } |
| 2780 | |
| 2781 | // serializedSizeInBytes returns the number of bytes of memory |
| 2782 | // required by this runContainer16. This is for the |