unpad method

Iterable<int> unpad(
  1. int blockSize,
  2. Iterable<int> input
)
override

Implementation

Iterable<int> unpad(int blockSize, Iterable<int> input) {
  if (input.length % blockSize != 0) {
    throw Exception('Input length must be multiple of blockSize: $blockSize');
  }

  return input;
}