$process method

  1. @override
void $process(
  1. List<int> chunk,
  2. int start,
  3. int end
)
override

Processes a chunk of input data

Implementation

@override
void $process(List<int> chunk, int start, int end) {
  messageLength += end - start;
  for (; start < end; start++, pos++) {
    if (pos == blockLength) {
      $update();
      pos = 0;
    }
    buffer[pos] = chunk[start];
  }
  if (pos == blockLength) {
    $update();
    pos = 0;
  }
}