src/main/java/com/googlecode/javaewah32/IteratingBufferedRunningLengthWord32.java
protected static void discharge(
            final BufferedRunningLengthWord32 initialWord,
            final EWAHIterator32 iterator, final BitmapStorage32 container) {
        BufferedRunningLengthWord32 runningLengthWord = initialWord;
        for (; ; ) {
            final int runningLength = runningLengthWord
                    .getRunningLength();
            container.addStreamOfEmptyWords(
                    runningLengthWord.getRunningBit(),
                    runningLength);
            container.addStreamOfLiteralWords(iterator.buffer(),
                    iterator.literalWords()
                            + runningLengthWord.literalWordOffset,
                    runningLengthWord.getNumberOfLiteralWords()
            );
            if (!iterator.hasNext())
                break;
            runningLengthWord = new BufferedRunningLengthWord32(
                    iterator.next());
        }
    }
protected static void discharge(
            final BufferedRunningLengthWord32 initialWord,
            final EWAHIterator32 iterator, final BitmapStorage32 container) {
        BufferedRunningLengthWord32 runningLengthWord = initialWord;
        for (; ; ) {
            final int runningLength = runningLengthWord
                    .getRunningLength();
            container.addStreamOfEmptyWords(
                    runningLengthWord.getRunningBit(),
                    runningLength);
            container.addStreamOfLiteralWords(iterator.buffer(),
                    iterator.literalWords()
                            + runningLengthWord.literalWordOffset,
                    runningLengthWord.getNumberOfLiteralWords()
            );
            if (!iterator.hasNext())
                break;
            runningLengthWord = new BufferedRunningLengthWord32(
                    iterator.next());
        }
    }
For internal use. (One could use the non-static discharge method
instead, but we expect them to be slower.)

@param initialWord the initial word
@param iterator    the iterator
@param container   the container