As nice as internal iteration (ForEach) is for performance, it's impossible to iterate over two bitmaps at the same time with internal iteration. This patch:
Adds external iteration functions: RunIterator and BitIterator.
Adds an Nth function to BitIterator so we can quickly seek N forward.
As nice as internal iteration (ForEach) is for performance, it's impossible to iterate over two bitmaps at the same time with internal iteration. This patch: