MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / fillBitmapTo

Function fillBitmapTo

lib/core/utils.cc:258–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void 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}

Callers 7

encodeMethod · 0.85
encodeMethod · 0.85
encodeMethod · 0.85
encodeMethod · 0.85
encodeMethod · 0.85
encodeMethod · 0.85
encodeMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected