update method
Implementation
@override
void update(Uint8List inp, int inpOff, int len) {
var offset = inpOff;
var remaining = len;
while (remaining > 0) {
final toCopy = (_blockSize - _bufferPos) < remaining
? (_blockSize - _bufferPos)
: remaining;
_buffer.setRange(_bufferPos, _bufferPos + toCopy, inp, offset);
_bufferPos += toCopy;
offset += toCopy;
remaining -= toCopy;
_totalLength += toCopy;
if (_bufferPos == _blockSize) {
_processBlock(_buffer);
_bufferPos = 0;
}
}
}