| 186 | } |
| 187 | |
| 188 | void setFromBits(const uint64_t* bits, int32_t size) { |
| 189 | auto numWords = bits::nwords(size); |
| 190 | if (numWords > bits_.size()) { |
| 191 | bits_.resize(numWords); |
| 192 | } |
| 193 | memcpy(bits_.data(), bits, numWords * 8); |
| 194 | size_ = size; |
| 195 | end_ = size; |
| 196 | begin_ = 0; |
| 197 | updateBounds(); |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * Removes rows that are not present in the 'other' vector. |