process method
Implementation
Iterable<int> process(Iterable<int> data) {
final numBlocks = (data.length / blockSize).ceil();
final out = Uint8List(numBlocks * blockSize);
int outOffset = 0;
for (int i = 0; i < numBlocks; i++) {
Iterable<int> curInputBlock;
if (i == numBlocks - 1) {
curInputBlock = data;
} else {
curInputBlock = data.take(blockSize);
}
outOffset += processBlock(curInputBlock, out, outOffset);
data = data.skip(blockSize);
}
return out;
}