| 256 | } |
| 257 | |
| 258 | void fillBitmapTo(std::vector<bool>& bitmap, |
| 259 | unsigned& cursor, |
| 260 | unsigned terminateAt, |
| 261 | const std::vector<bool>& pattern) |
| 262 | { |
| 263 | while (cursor < terminateAt) |
| 264 | { |
| 265 | for (bool b : pattern) |
| 266 | { |
| 267 | if (cursor < bitmap.size()) |
| 268 | bitmap[cursor++] = b; |
| 269 | } |
| 270 | } |
| 271 | } |