OR sets the bit map to be equal to itself bitwised OR'd with o
(o BitMap)
| 64 | |
| 65 | // OR sets the bit map to be equal to itself bitwised OR'd with o |
| 66 | func (bm *BitMap) OR(o BitMap) { |
| 67 | for i := 0; i < o.Len(); i++ { |
| 68 | if o.IsSet(i) { |
| 69 | bm.Set(i) |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | func (bm *BitMap) Marshal(out []byte) []byte { |
| 75 | switch bits.UintSize { |